HTML form preview then INSERT using PHP & MySQL

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
stevesoler
Forum Newbie
Posts: 7
Joined: Sun Jun 30, 2002 4:11 am

HTML form preview then INSERT using PHP & MySQL

Post by stevesoler »

Hello everyone! This is regarding HTML forms, PHP & MySQL.

My Question:

How do you create an html form that goes to a preview screen and then allows the user to move back to the form if they made any errors and corrections are needed or click the send button to submit the form. The form's contents are then inserted into a database table.

Many thanks to anyone who can help me with this!
- Steve 8)

Just incase you need to know.. my current setup is:
Solaris 2.7
Apache 1.3.3
MySQL Version 3.23.43
PHP 4.1.0 Apache Module
User avatar
Kenneth
Forum Newbie
Posts: 1
Joined: Mon Jul 08, 2002 9:16 am

Post by Kenneth »

Just make the preview page with the same variables you would normally make, just make sure that when clicking "ok", the variables get sent along (like type=hidden name=variable_name value=variable_value)
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Go here: http://www.devnetwork.net/forums/viewto ... highlight=

Scroll down about half way, and read my really long post with code sample. That is one way to do it. =)
stevesoler
Forum Newbie
Posts: 7
Joined: Sun Jun 30, 2002 4:11 am

Post by stevesoler »

Thanks for the tip Jason! Unfortunately I've already gone and done it the other way (preview on separate page) but I'll sure give your code a try on my next project (which may be soon).

Take care!
- Steve 8)
Post Reply