Kovich
03-04-2009, 03:04 AM
Hey there.
I'm looking to figure out a simple operation here, but getting stuck in the process. I have about... zero knowledge of the language this would be done in. I have a form (http://www.bucketbux.com/referralspam.php) where I would like a popup to appear once the submission of the form has been completed.
Here is what I have thus far:
<script language="javascript" type="text/javascript">
function vaidation()
{
var form = document.refspam;
if (form.ref_link.value == '' || form.email.value == '')
{
alert ('Please fill out the form completely before clicking submit!');
return false;
}
return true;
}
</script>
If you notice, a window will appear if the form has not been filled out completely. I'm just not sure how to do what is, essentially the opposite. :P
Help is appreciated! Thank you. =]
I'm looking to figure out a simple operation here, but getting stuck in the process. I have about... zero knowledge of the language this would be done in. I have a form (http://www.bucketbux.com/referralspam.php) where I would like a popup to appear once the submission of the form has been completed.
Here is what I have thus far:
<script language="javascript" type="text/javascript">
function vaidation()
{
var form = document.refspam;
if (form.ref_link.value == '' || form.email.value == '')
{
alert ('Please fill out the form completely before clicking submit!');
return false;
}
return true;
}
</script>
If you notice, a window will appear if the form has not been filled out completely. I'm just not sure how to do what is, essentially the opposite. :P
Help is appreciated! Thank you. =]