Here’s my problem I have a three step registration phase where the user will fill in text boxes and drop downs for the process.
My question is if a user would like to change some of the information after they see the results in the confirmation page what is the best way to do this.
At present I am thinking getting the user to click back to the page they want to change and then enter the new info.
The problem I am having with this method is that the fields appear blank when you go back. How can I keep these values on the forms until the submit button is actually pressed.
Here is a sample of some of the code in my forms
<tr>
<td colspan="2" class="labelcell"><label for = "town_region_name">Town/Region</label></td>
<td colspan="2" class="fieldcell2"><input type="text" name="town_region_name" size="20" maxlength="20"
value="<?php if(isset($_POST['town_region_name'])) echo stripslashes($_POST['town_region_name']);?>"/>
</td>
</tr>
Hope someone can help.
Much appreciated.
Gaz
My question is if a user would like to change some of the information after they see the results in the confirmation page what is the best way to do this.
At present I am thinking getting the user to click back to the page they want to change and then enter the new info.
The problem I am having with this method is that the fields appear blank when you go back. How can I keep these values on the forms until the submit button is actually pressed.
Here is a sample of some of the code in my forms
<tr>
<td colspan="2" class="labelcell"><label for = "town_region_name">Town/Region</label></td>
<td colspan="2" class="fieldcell2"><input type="text" name="town_region_name" size="20" maxlength="20"
value="<?php if(isset($_POST['town_region_name'])) echo stripslashes($_POST['town_region_name']);?>"/>
</td>
</tr>
Hope someone can help.
Much appreciated.
Gaz