- Original Poster
- #1
Hello, I have a problem that I hope can be solved.
I am messing around with a Form that is directed to my Email.
Now I have tried both of the below methods, but the message ALWAYS gets sent to my email regardless!
The Javascript functions do not pop up!
I've tried this:
<form method="post" action="thankyou.php" id="orderform"</form>
And this:
<form name="myForm" action="form2.php" onsubmit="return validateForm()" method="post">
First name: <input type="text" name="fname">
< input type="submit" value="Submit">
< /form>
Is this something to do with the onsubmit event?
Sorry to be so vague, but it's because I am a newbie, and I know that this is not strictly validation as such with Javascript, but I rather like the pop up box Error Warning things.
Proper validation can wait for a bit.
Thanks so much if you can help, or offer advise.
I am messing around with a Form that is directed to my Email.
Now I have tried both of the below methods, but the message ALWAYS gets sent to my email regardless!
The Javascript functions do not pop up!
I've tried this:
<form method="post" action="thankyou.php" id="orderform"</form>
And this:
<form name="myForm" action="form2.php" onsubmit="return validateForm()" method="post">
First name: <input type="text" name="fname">
< input type="submit" value="Submit">
< /form>
Is this something to do with the onsubmit event?
Sorry to be so vague, but it's because I am a newbie, and I know that this is not strictly validation as such with Javascript, but I rather like the pop up box Error Warning things.
Proper validation can wait for a bit.
Thanks so much if you can help, or offer advise.