|
Simply to redirect form content on Another Page
The below script doesnt let me display the contents of the form to another page can someone suggest a wa y to redirect the contents as suggested to open in another page after the submit button is pressed .... help much appreciated
<html>
<head>
<title>[No Title]</title>
<script language="JavaScript">
<!--
function checkRequired(theForm)
{
var bMissing = false;
if ( 0 == theForm.textField.value.length )
bMissing = true;
if ( 0 == theForm.dropMenu.selectedIndex )
bMissing = true;
if ( bMissing )
{
alert( "All form fields are required.\n"
+ "Please complete them and Submit again.");
return false;
}
else
{
return true;
}
}
//-->
</script>
</head>
<body>
<form>
<p>Name : <input type="text" name="textField" size="20"><br>
Address : <input type="text" name="textField" size="20"><br>
Phone : <input type="text" name="textField" size="20"><br>
<select size="1" name="dropMenu">
<option selected value>Select One</option>
<option value="1">Male</option>
<option value="2">Female</option>
</select><br>
<input type="submit" value="Submit" name="submit">
<input type="reset" value="Reset" name="reset"></p>
</form>
</body>
</html>
|