joker
12-29-2002, 11:13 AM
Hello all,
I can't get the function to work.
Here is the function:
function Validation()
{
if (confirm("Sending an email?\n\nIf you wish to proceed click on <OK>; If not, click on <CANCEL> to abort"))
{
alert("true");
return true;
}
else
{
alert("false");
return false;
}
}
and here is the form:
<form method="POST" action="https://www.myserver.com/cgi-bin/redirect.pl">
<p align="right"><font size="2" face="Arial">
<select size="1" name="leave" onSubmit="return Validation();">
<option value="https://www.myserver.com/sendmail.php3?option=<?php echo "option1" ?></option>
<option value="https://www.myserver.com/sendmail.php3?option=<?php echo "option2" ?></option>
<option value="https://www.myserver.com/sendmail.php3?option=<?php echo "option3" ?></option>
</select></font></td>
<td><p align="left"><input type="submit" value="MailIt" name="mail"></p></td>
</form>
Any ideas?
I can't get the function to work.
Here is the function:
function Validation()
{
if (confirm("Sending an email?\n\nIf you wish to proceed click on <OK>; If not, click on <CANCEL> to abort"))
{
alert("true");
return true;
}
else
{
alert("false");
return false;
}
}
and here is the form:
<form method="POST" action="https://www.myserver.com/cgi-bin/redirect.pl">
<p align="right"><font size="2" face="Arial">
<select size="1" name="leave" onSubmit="return Validation();">
<option value="https://www.myserver.com/sendmail.php3?option=<?php echo "option1" ?></option>
<option value="https://www.myserver.com/sendmail.php3?option=<?php echo "option2" ?></option>
<option value="https://www.myserver.com/sendmail.php3?option=<?php echo "option3" ?></option>
</select></font></td>
<td><p align="left"><input type="submit" value="MailIt" name="mail"></p></td>
</form>
Any ideas?