i have a form like this on a page called emailform.htm:
<form method="post" onSubmit=NewWindow()>
<H3>From: <input type="text" name="from"></H3>
<H3>Message: <input type="text" name="body"></H3>
<input type="submit" value="Send the Message">
when submitted, it calls this function:
window.open('sendmail.php', 'newWin', 'scrollbars=no,
toolbar=no, width=200, height=200');
1. the form values are not getting passed over to sendmail.php.
2. after the popup window pops up and loads sendmail.php, the original page, emailform.htm, changes to an error page.
so, what do i need to do to get the form values to be passed, and how do i keep the original page either from changing at all, or, if thats not possible, get it to simply reload itself.
A lot of helpful information on working with forms and values in different windows can be found at http://developer.irt.org/script/form.htm#10.3
keep it php
my entire site is php and does some very similar things -- http://www.memphisdate.com/
see how this is handled and i can send you some code samples