hello i am new here and need ask for help on this form script which i am working on here script I have made so far
<html><head><title>Test</title></head><body>
<?php
if (!$Submit){ ?><font face=Arial size=4><b>Fill out the form below</b></font><br>
<form method="post" target="_blank">
<font face=Arial size=2><b> Your Name: <input type="text" name="Name1"><br>
Your E-Mail: <input type="text" name="Email1"><br>
<font face=Arial size=2><b> Friend's Name: <input type="text" name="Name"><br>
Friend's E-Mail: <input type="text" name="Email"><br>
<input type="Submit" name="Submit" value="Submit" onclick="window.open('', 'popup', 'width=115,height=285,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false">
</form>
<?php
} else {
$Line1="Hey $Name,";
$mailsent=@mail("$Email","Check this site out","$Line1\n
You have been invited by $Name1 to come visit us here www.deafgang.com. Please feel free to come join us any time and do remember that you must be 18 years or older to join due to some of the graphic language used by our members. If you are not over 18 you may still join with parental permission, please contact our Administrator for further details.","From: \"$Name1\"<$Email1>");
print "<font face=Arial size=4>It has been sent to your friend and Thank you for invite your friends to Deaf Gang.</font><hr width=360 align=left>";
} ?>
</body></html>
now you see what I really want is once it submit i dont want it redirect to 2nd page as if that not work, or as if could make it as popup not new window because i want without all bars in it. as you see that is only one php page to process the form however the Onclick need to call for url name or some codes i try everything i could think of to put in that Onclick=window.open('url')
anyone have idea? or any suggestions to make it work??