MySQL Forums
Forum List  »  PHP

Re: FORM data to be displayed once before entry into database
Posted by: Kai Voigt
Date: July 07, 2005 04:29PM

Hello.

You need 3 PHP scripts. The first (form.php e.g.) displays the form. I assume you got this form done. The second (show.php) uses the input of the form and displays the values in a new form. The third (insert.php) finally inserts the data of the forms.

Here are some hints about how the data flow looks like.

form.php: <input name='var1'>

show.php: <input name='var1' value='<?php echo $_POST['var1']; ?>'>

insert.php contains your INSERT code with using $_POST['var1'] to store the content.

Get the idea? You need to "transport" the content of var1 through the second form.

Kai

Options: ReplyQuote


Subject
Written By
Posted
mk
July 06, 2005 04:59AM
Re: FORM data to be displayed once before entry into database
July 07, 2005 04:29PM
mk
July 12, 2005 02:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.