Hi,
I’m struggling with this problem for hours and hope that someone can help me out.
I have created a small form on my homepage where you can submit name and e-mail.
The data is first validated (via javascript on my homepage) and then stored using a php page (send.php).
This send.php should produce a message in a new window where it thanks the person for submitting.
The question is how can I use the javascript window_open()
if I cannot put it right after “onsubmit”.
My code looks something like this:
<SCRIPT LANGUAGE=javascript>
<!–
function validation()
(validates the form fields and return true if ok)
//–>
</SCRIPT>
In my form I have:
<form name=”myform” method=”post” action=”send.php” onsubmit=”return validation()”>
So the question: how do I open send.php in a new window after validation.
Thanks !
Sandra.