DuncanKing
Programmer
I have field in a form that is filled depending on the option that a user selects from the previous field.
Eg "Model" is filled with all the Models available if a user selects a particular "Make."
This works well.
Here the code I have:
<select name="Make" onChange="fillSelectFromArray(this.form.Model, ((this.selectedIndex == -1) ? null : modelinfo[this.selectedIndex-1]));">
After the user has filled out the form and clicks "Next" it brings them to a page that lets them review the information entered. If they agree they press "Submit" and the information is entered into the DB. However, if they want to change something and go back to the previous page to change information on the form, the filled information in the second field disappears. Is there a piece of code that will keep the information that was in the "filled field"?
The code I have for "go back" is
<form>
<input type="button" value="Back to Previous Page"
onClick="javascript: history.go(-1)">
</form>
Thanks all...
Eg "Model" is filled with all the Models available if a user selects a particular "Make."
This works well.
Here the code I have:
<select name="Make" onChange="fillSelectFromArray(this.form.Model, ((this.selectedIndex == -1) ? null : modelinfo[this.selectedIndex-1]));">
After the user has filled out the form and clicks "Next" it brings them to a page that lets them review the information entered. If they agree they press "Submit" and the information is entered into the DB. However, if they want to change something and go back to the previous page to change information on the form, the filled information in the second field disappears. Is there a piece of code that will keep the information that was in the "filled field"?
The code I have for "go back" is
<form>
<input type="button" value="Back to Previous Page"
onClick="javascript: history.go(-1)">
</form>
Thanks all...