Click to See Complete Forum and Search --> : posting info from a db


pogy366
01-24-2005, 03:35 PM
... i have a website dedicated to the USS Sterlet, an American fleet submarine, and wanted to have an option for crew members to fill out a form with their information (name, rate, dates of service) that's placed in a db, which would then feed a page displaying the boat's roster.

What script do i need to run this? Thanks!

NogDog
01-24-2005, 03:50 PM
1. Create a database with 1 or more tables to store the data.
2. Create a web page with a HTML form to collect the data from each person. The FORM element will call the PHP form-handler page, such as <form action="form-handler.php" method=post> .
3. Write the PHP form-handler, including input validation and error messages for missing/bad input.
4. If input is OK, write it to the database.
5. Create a PHP report page which queries the database and outputs the results into HTML (likely using a <table> for the rows of information).