How do I print/display/show form DOM values so the user can review them before he/she submits the form? I'd like to do this using only Javascript and keeping it on the client-side.
For example:
...
<form name="userinfo">
First name: <INPUT TYPE="TEXT" NAME="firstname"><br>
Last name: <INPUT TYPE="TEXT" NAME="lastname"><br>
<INPUT TYPE="button" value=http://www.webdeveloper.com/forum/archive/index.php/"review" onclick="loadform('reviewinfo');"><br>
</form>
<form name="reviewinfo">
This is what you entered:
First name: (??? print document.userinfo.firstname.value ???)<br>
Last name: (??? print document.userinfo.lastname.value ???)<br>
Go back to make changes, or click on the button belowe to submit.
<INPUT TYPE="button" value=http://www.webdeveloper.com/forum/archive/index.php/"submit" onclick="validade('reviewinfo');"><br>
</form>
...
For example:
...
<form name="userinfo">
First name: <INPUT TYPE="TEXT" NAME="firstname"><br>
Last name: <INPUT TYPE="TEXT" NAME="lastname"><br>
<INPUT TYPE="button" value=http://www.webdeveloper.com/forum/archive/index.php/"review" onclick="loadform('reviewinfo');"><br>
</form>
<form name="reviewinfo">
This is what you entered:
First name: (??? print document.userinfo.firstname.value ???)<br>
Last name: (??? print document.userinfo.lastname.value ???)<br>
Go back to make changes, or click on the button belowe to submit.
<INPUT TYPE="button" value=http://www.webdeveloper.com/forum/archive/index.php/"submit" onclick="validade('reviewinfo');"><br>
</form>
...