I am a Junior Web Developer, just got into this 3 months ago. I need to understand the basics in the following code :
<form method="post" action="contact_touch_media_test.php" name="contact-us" id="contact-us" onsubmit="return checkForm();" >
<input type="submit" name="submit" value=" Send " />
Can anybody explain me what happens (in sequence) immediately after submit button is clicked ?
If the checkForm() validation routine returns "false" the value of submit button becomes "false" ? Please explain me the mechanism behind it ?
I am just coding this without understanding what is happening behind the scene.
And also on the server side I am having this following code :
what is the value of $_POST['submit'] if the validation routine checkForm() returns "false" or will it be "send" ?
Is it , that the submit button will not get activated if this checkForm() routine returns "false".
thanks a bunch,