Input Form Value Property with PHP?

I am making a form, that when submitted will send the data to another identical form whose values are already entered and are the same as the inputs from the previous form. For example. If someone enters the name John Doe, then in the form in the next web page “John Doe” will already be in the input box.

The purpose of this is so that the user can check inputs before the data is sent to the database and change the values if necessary. I know for a fact that the values are posting to the next form because I have checks for that, but I cannot get the value to appear in the text box. Is it even possible? Any help appreciated. [php]

     <td><font color=red>*</font> Employee Name:</td>
     <td><input size=20 name="empName"></td>[/php]  


     <td><font color=red>*</font> Employee Name:</td>
     <td><input size=20 name="empName" value = "<?php $EmployeeName ?>" ></td>[/php]

[php]$EmployeeName = $_POST[‘empName’];[/php]

form 1

form 2

$name = $_POST[‘name’];

Thank you, it seems I only need echo there to make it work. Didn’t realize it needed to be there. Thanks for the help.

Sponsor our Newsletter | Privacy Policy | Terms of Service