what I am trying to accomplish is to gather the input from this form and display that input on another html page using javascript. I don't want use asp.
this is part of my form
<html>
<head >
<script type="text/javascript">
function validate()
{
doc = document.forms[0]
at = doc.email.value.indexOf("@
")
firstName=doc.fname.value
lastName= doc.fname.value
password=doc.passW.value
submitOK="True"
if (at==-1)
{
alert("Not a valid e-mail!")
submitOK="False"
}
if (firstName == "")
{
alert("You must enter a first name")
submitOK="False"
}
if (lastName == "")
{
alert("You must enter a last name")
submitOK="False"
}
if ( password == "")
{
alert("Your must enter a password ")
submitOK="False"
}
if (submitOK=="False")
{
return false
}
}
</script>
</head>
<body>
<script type="text/javascript">
document.write("<form action='thankYou.html' >")
document.write("<table width='140' align='left' valign='top' border='1' cellspacing='2' cellpadding='5'>")
document.write("<tr><td >")
document.write("<label><b>
Username</
b></label>
")
document.write("</td>")
document.write("<td >")
document.write("<p><b><inp
ut type='text' name='user'></b></p>")
document.write("</td></tr>
")
document.write("<tr><td >")
document.write("<label><b>
Password</
b></label>
")
document.write("</td>")
document.write("<td >")
document.write("<p><b><inp
ut type='password' name='passW'></b></p>")
document.write("</td></tr>
")
document.write("<tr><td >")
document.write("<label><b>
Email</b><
/label>")
document.write("</td>")
document.write("<td >")
document.write("<p><b><inp
ut type='text' name='email'></b></p>")
document.write("</td></tr>
")
document.write("<tr><td>")
document.write("<label><b>
First name</b></label>")
document.write("</td>")
document.write("<td >")
document.write("<p><b><inp
ut type='text' name='fname'></b></p>")
document.write("</td></tr>
")
document.write("<tr><td>")
document.write("<label><b>
Last name</b></label>")
document.write("</td>")
document.write("<td >")
document.write("<p><b><inp
ut type='text' name='lname'></b></p>")
document.write("</td></tr>
")
document.write("<tr><td >")
document.write("<label><b>
Please select</b></label>")
document.write("</td>")
document.write("<td>")
document.write("<p><b><inp
ut type='radio' name='rad' ><label>Mr</label></b>")
document.write(" <b><input type='radio' name='rad' ><label>Mrs</label></b>")
document.write(" <b><input type='radio' name='rad' ><label>Miss</label></b></
p>")
document.write("</td></tr>
")
document.write("<tr><td>")
document.write("<p><b><inp
ut type='submit' onclick='return validate()' value='Submit Order'>")
document.write("</td></tr>
")
document.write("</table> ");
document.write("</form>")
</script>
</body>
</html>
MY next page should display the information entered.
thank you.html
Start Free Trial