01-23-2008, 07:06 PM
|
#4 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 87
Thanks: 49
|
Quote:
Originally Posted by Alan @ CIT
If I where writing a guestbook script, it would probably flow something like the following:
Code:
1. Display guestbook to user
2. User clicks "Add Comment" link
3. Display the new comment form
4. User fills in form and submits
5. Check / Validate $_POST input
6. Connect to the database
7. Insert the new entry into the database
8. Close database connection
9. Display a "Thank you" message if insert was sucessful
10. Redirect user back to the guestbook
Hopefully this will get you going in the right direction
Alan
|
Thanks for that, I totally forgot about the Database  Do I create a database called "guesbook" for example, then add the fields which will be in the form? E.g. Name, email, website, comment?
|
|
|
|