onsubmit and action
Posted: Tue Aug 17, 2010 4:46 am
Hi,
I have got a form within abc.php page with method=post, onsubmit="return validateForm(this)" and action="xyz.php"
once user clicks submit - JavaScript function validateForm validates the form onsubmit and if it's all correct the page goes to xyz.php to run the script thr to send email.
But instead of going to the xyz.php page can i have this implemented in the same page ?
I tried placing the xyz.php script in abc.php but it doesn't seem to like it.
Any ideas
Thank you.
I have got a form within abc.php page with method=post, onsubmit="return validateForm(this)" and action="xyz.php"
once user clicks submit - JavaScript function validateForm validates the form onsubmit and if it's all correct the page goes to xyz.php to run the script thr to send email.
But instead of going to the xyz.php page can i have this implemented in the same page ?
I tried placing the xyz.php script in abc.php but it doesn't seem to like it.
Any ideas
Thank you.