[thelist] netscape problem submitting php form from popup

Rich Gray richardgray at onetel.co.uk
Mon Jun 17 15:11:01 CDT 2002


Maybe I've missed something here but why are you checking $HTTP_COOKIE_VARS?
Shouldn't it be $HTTP_POST_VARS (or $_POST for v4.1.x and above)?

Rich
----- Original Message -----
From: "Keith Shaffer" <keith at geonetric.com>
To: <thelist at lists.evolt.org>
Sent: Monday, June 17, 2002 12:56 PM
Subject: [thelist] netscape problem submitting php form from popup


> 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
>
>
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>




More information about the thelist mailing list