coffeebrown83
05-01-2003, 07:48 PM
how do i get the raido button to send its value back so that the user may be directed to the webpage that refers to their subject? thank You
<html>
<head>
<title></title>
</head>
<body background=images/kewl.jpg text="#000000" link="#0033FF" vlink="#00CCFF" alink="#FF0000">
<SCRIPT LANGUAGE ="Javascript" >
<!-- Start hifing Javascript statements
function ValidateOrder(myForm) {
if (myForm.First_name.value=="")
{
window.alert("Missing First name! Please correct");
myForm.First_name.focus();
return(false);
}
if (myForm.Last_name.value=="")
{
window.alert("Missing Last name! Please correct");
myForm.Last_name.focus();
return(false);
}
if (myForm.address.value=="")
{
window.alert("Missing Address! please correct");
myForm.address.focus();
return(false);
}
if (myForm.city.value=="")
{
window.alert("Missing City! please correct");
myForm.city.focus();
return(false);
}
if (document.myForm.state.value== "")
{
window.alert("Missing State! please correct");
myForm.state.focus();
return(false);
}
if (document.myForm.zip.value.length < 1){
window.alert("Missing zip! please correct");
myForm.zip.focus();
return(false);
}
option_selected= "no"
for (i=0; i < document.myForm.radio_option1.length; i++) {
if (document.myForm.radio_option1[i].checked){
option_selected= "yes";
}
}
if (option_selected == "no"){
window.alert( "You must select a subject. Please correct!");
return(false);
}
'window.alert( "Your information looks correct, lets move on!");
if (myForm.radio_option1.Value == "Booking"){
setTimeout('document.location="http://www.yahoo.com"',1000);
}
if (myForm.radio_option1.Value == "Other"){
setTimeout('document.location="http://www.msn.com"',1000);
}
return(true);
}
// End hiding Javascript-->
</SCRIPT>
<form method="post" onSubmit="return ValidateOrder(this)" name= "myForm" ACTION="mailto:coffeebrown83@hotmail.com" Enctype="text/plain">
<font face="Tahoma" size="3">Please Complete the following information
form for more information regarding pricing. Then select next. Thank
you!</font>
<p><font face="Tahoma" size="2">
<B> First Name:</B> <INPUT NAME="First_name" type="text" size="23" maxlength="25">
<B> Last Name:</B> <INPUT NAME="Last_name" type="text" size="24" maxlength="25">
</font></p>
<p><font face="Tahoma" size="2"><b> Mailing Address:</b>
<INPUT NAME="address" type="text" size="43" maxlength="50"><br>
<BR>
<b> City:</b> <INPUT NAME="city" type="text" size="20" maxlength="50">
<b>State:</b> <INPUT NAME="state" type="text" size="4" maxlength="2">
<b>Zip:</b> <INPUT NAME="zip" type="text" size="9" maxlength="5"> </font></P>
<P><b><font face="Tahoma" size="2">What is the Subject of this Inquiry?</font></b></p>
<font face="Tahoma" size="2">
<INPUT NAME="radio_option1" TYPE="radio" Value="Booking">Booking Inquiries<BR>
<INPUT NAME="radio_option1" TYPE="radio" Value="Other"> Other Inquiries<BR>
</font>
<P><B><font face="Tahoma" size="2">Questions and or Comments:</font> </b></p>
<font face="Tahoma" size="2">
<TEXTAREA NAME="myTextArea" Type="textarea" rows="4" cols="46">
</TEXTAREA>
<br>
<br>
<INPUT type="reset" value="Reset Form">
<INPUT Type="submit" Value="Submit" >
</font>
</body>
</html>
<html>
<head>
<title></title>
</head>
<body background=images/kewl.jpg text="#000000" link="#0033FF" vlink="#00CCFF" alink="#FF0000">
<SCRIPT LANGUAGE ="Javascript" >
<!-- Start hifing Javascript statements
function ValidateOrder(myForm) {
if (myForm.First_name.value=="")
{
window.alert("Missing First name! Please correct");
myForm.First_name.focus();
return(false);
}
if (myForm.Last_name.value=="")
{
window.alert("Missing Last name! Please correct");
myForm.Last_name.focus();
return(false);
}
if (myForm.address.value=="")
{
window.alert("Missing Address! please correct");
myForm.address.focus();
return(false);
}
if (myForm.city.value=="")
{
window.alert("Missing City! please correct");
myForm.city.focus();
return(false);
}
if (document.myForm.state.value== "")
{
window.alert("Missing State! please correct");
myForm.state.focus();
return(false);
}
if (document.myForm.zip.value.length < 1){
window.alert("Missing zip! please correct");
myForm.zip.focus();
return(false);
}
option_selected= "no"
for (i=0; i < document.myForm.radio_option1.length; i++) {
if (document.myForm.radio_option1[i].checked){
option_selected= "yes";
}
}
if (option_selected == "no"){
window.alert( "You must select a subject. Please correct!");
return(false);
}
'window.alert( "Your information looks correct, lets move on!");
if (myForm.radio_option1.Value == "Booking"){
setTimeout('document.location="http://www.yahoo.com"',1000);
}
if (myForm.radio_option1.Value == "Other"){
setTimeout('document.location="http://www.msn.com"',1000);
}
return(true);
}
// End hiding Javascript-->
</SCRIPT>
<form method="post" onSubmit="return ValidateOrder(this)" name= "myForm" ACTION="mailto:coffeebrown83@hotmail.com" Enctype="text/plain">
<font face="Tahoma" size="3">Please Complete the following information
form for more information regarding pricing. Then select next. Thank
you!</font>
<p><font face="Tahoma" size="2">
<B> First Name:</B> <INPUT NAME="First_name" type="text" size="23" maxlength="25">
<B> Last Name:</B> <INPUT NAME="Last_name" type="text" size="24" maxlength="25">
</font></p>
<p><font face="Tahoma" size="2"><b> Mailing Address:</b>
<INPUT NAME="address" type="text" size="43" maxlength="50"><br>
<BR>
<b> City:</b> <INPUT NAME="city" type="text" size="20" maxlength="50">
<b>State:</b> <INPUT NAME="state" type="text" size="4" maxlength="2">
<b>Zip:</b> <INPUT NAME="zip" type="text" size="9" maxlength="5"> </font></P>
<P><b><font face="Tahoma" size="2">What is the Subject of this Inquiry?</font></b></p>
<font face="Tahoma" size="2">
<INPUT NAME="radio_option1" TYPE="radio" Value="Booking">Booking Inquiries<BR>
<INPUT NAME="radio_option1" TYPE="radio" Value="Other"> Other Inquiries<BR>
</font>
<P><B><font face="Tahoma" size="2">Questions and or Comments:</font> </b></p>
<font face="Tahoma" size="2">
<TEXTAREA NAME="myTextArea" Type="textarea" rows="4" cols="46">
</TEXTAREA>
<br>
<br>
<INPUT type="reset" value="Reset Form">
<INPUT Type="submit" Value="Submit" >
</font>
</body>
</html>