[thelist] netscape problem submitting php form from popup

Keith Shaffer keith at geonetric.com
Mon Jun 17 14:57:01 CDT 2002


Hello all,

I am having a problem when a user submits a form via php using a javascript
popup window.  It works fine in IE, but in netscape it just closes the
window and does not submit the values.  If anyone notices anything weird I
would appreciate it.  Here is what I am doing:

<!-- launch the popup window on body load -->
open ('/smallbusiness/popup.php', 'popup',
'toolbar=1,location=0,directories=1,status=1,menubar=1,scrollbars=1,resizabl
e=0,width=400,height=360');


<!-- contents of popup window -->
<body onload="window.opener.name='mainwindow';">

<form action="zipcode.php" method="post" target="mainwindow"
onsubmit="window.close();">
<table height="328" width="350" cellspacing="0" cellpadding="0" border="0">
<input type="text" name="zipCode" id="zip" size="10" maxlength="10">
<input type="submit" name="submit" id="submit" value="go">
</form>


Then on my catch page I am basically doing:
if ($HTTP_COOKIE_VARS["zipCode"]!=""){

perform the rest



Ideas on how to make this work in netscape?  Much appreciation!

Thanks,

Keith







More information about the thelist mailing list