gymshoe
08-27-2001, 06:50 PM
I have a form that collects 2 things and sends it off to a another page that collects the info and does stuff with it. Something like this:
<form name="somename" method="post" action="mypage.php" target="new">
<input type="hidden" name="var1" value=1>
<input type="hidden" name="var2" value=2>
<input type="submit" value="Sent">
</form>
k....this all works fine and stuff.
my problem comes when i try to control the window that mypage.php opens up in. I wanted it to be a fixed size so i made javascript function called OpenPopup() that uses the window.open(...) function with mypage.php as the target page.
so the form declaration now looks like:
<form name="somename" method="post" action="javascript:OpenPopup()">
the problem is...now the form's parameters (var1 and var2) don't get passed through to mypage.php.
i can't seem to figure out how to pass the form's parameters through.
anyone have an idea?
thanks in advance!
-James
<form name="somename" method="post" action="mypage.php" target="new">
<input type="hidden" name="var1" value=1>
<input type="hidden" name="var2" value=2>
<input type="submit" value="Sent">
</form>
k....this all works fine and stuff.
my problem comes when i try to control the window that mypage.php opens up in. I wanted it to be a fixed size so i made javascript function called OpenPopup() that uses the window.open(...) function with mypage.php as the target page.
so the form declaration now looks like:
<form name="somename" method="post" action="javascript:OpenPopup()">
the problem is...now the form's parameters (var1 and var2) don't get passed through to mypage.php.
i can't seem to figure out how to pass the form's parameters through.
anyone have an idea?
thanks in advance!
-James