From ryanne.cruz@up.edu.ph Tue Mar 18 13:22:29 2003 X-Original-To: pgsql-php@postgresql.org Received: from mail01.up.edu.ph (mail01.up.edu.ph [61.9.73.248]) by postgresql.org (Postfix) with SMTP id 43615475461 for ; Tue, 18 Mar 2003 08:22:29 -0500 (EST) Received: (qmail 9994 invoked by uid 504); 18 Mar 2003 13:42:13 -0000 Received: from ryanne.cruz@up.edu.ph by web1 with qmail-scanner-1.01 (update: v4252 12 Mar 2003. Clean. Processed in 7.432183 secs); 18 Mar 2003 13:42:13 -0000 Received: from unknown (HELO b01.mail.up.edu.ph) (10.16.3.1) by 10.16.3.142 with SMTP; 18 Mar 2003 13:42:05 -0000 Received: (qmail 12689 invoked by uid 504); 18 Mar 2003 11:49:34 -0000 Received: from ryanne.cruz@up.edu.ph by b01 with qmail-scanner-1.01 (update: v4252 12 Mar 2003. Clean. Processed in 0.488003 secs); 18 Mar 2003 11:49:34 -0000 Received: from unknown (HELO localhost) ([10.16.3.5]) (envelope-sender ) by 10.16.3.1 (qmail-ldap-1.03) with SMTP for ; 18 Mar 2003 11:49:34 -0000 Received: from 10.33.187.86 ( [10.33.187.86]) as user rocruz1@b04.mail.up.edu.ph by mail.up.edu.ph with HTTP; Tue, 18 Mar 2003 20:00:03 +0800 Message-ID: <1047988803.3e770a438abf9@mail.up.edu.ph> Date: Tue, 18 Mar 2003 20:00:03 +0800 From: ryanne cruz To: "pgsql-php@postgresql.org" Subject: Re: delayed passing of values in form MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 10.33.187.86 X-Archive-Number: 200303/15 X-Sequence-Number: 1927 hi list. i have a script with a delayed passing of values in the form. for example, i chose the year 2003 and ticked the radio button for households. when i look at the link, the variables are not yet passed to the maindemoutputmap script. i tried displaying the values of the variables and they came up correctly. if i choose another year or radio button, what i'll see is the previous options selected (the previous values assigned to the variables). if my explanation is hard to understand, you colud go to this site to see what i mean: http://www.philenergydb.upd.edu.ph/maindemoutputmap.php?prid=1 i ahve also included part of the script: echo "
"; echo "Choose energy source: "; echo ""; echo ""; echo ""; //echo ""; echo "Choose year of desired record: "; echo ""; echo ""; echo "Summary for Year $year"; echo "$esource"; echo ""; echo ""; //echo ""; //echo ""; echo ""; echo ""; echo ""; echo ""; echo "
LAYERS
"; echo "
No. of households
Installations
Consumption
"; echo ""; echo ""; From info@nederhoed.com Tue Mar 18 13:39:04 2003 X-Original-To: pgsql-php@postgresql.org Received: from nederhoed.com (nederhoed.com [62.197.129.10]) by postgresql.org (Postfix) with SMTP id 62CE3475458 for ; Tue, 18 Mar 2003 08:39:04 -0500 (EST) Received: (qmail 10012 invoked by uid 48); 18 Mar 2003 13:39:07 -0000 Received: from a80-126-161-64.adsl.xs4all.nl ( [a80-126-161-64.adsl.xs4all.nl]) as user info@localhost by webmail.nederhoed.com with HTTP; Tue, 18 Mar 2003 14:39:07 +0100 Message-ID: <1047994747.3e77217b60bcd@webmail.nederhoed.com> Date: Tue, 18 Mar 2003 14:39:07 +0100 From: Robert-Reinder Nederhoed Reply-To: rr@nederhoed.com To: "pgsql-php@postgresql.org" Subject: Re: delayed passing of values in form MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252;q=1.0 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 80.126.161.64 X-Archive-Number: 200303/19 X-Sequence-Number: 1931 Hello Ryanne, Is it a problem? What was the idea of posting? My guess is you have sent the variables using POST and have also set a GET-querystring in the form target-url (named 'action'): action=\"$root/maindemoutputmap.php?prid=".$prid The default order of processing the query variables is GPC, being GET, POST and COOKIE. So your GET querystring is overruled by the POSTed form-data. If you would like other behaviour, stop passing the $prid in the form action field: action=\"$root/maindemoutputmap.php\" Greetings, Robert-Reinder (rr@sodutch.com) http://rr.sodutch.com/ -- Een papegaai is geen olifant ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From vev@michvhf.com Wed Mar 19 18:02:08 2003 X-Original-To: pgsql-php@postgresql.org Received: from andrea.pop4.net (216-234-109-11.ded.det2.hexcom.net [216.234.109.11]) by postgresql.org (Postfix) with SMTP id 61874476285 for ; Wed, 19 Mar 2003 13:02:08 -0500 (EST) Received: (qmail 98990 invoked by uid 1008); 19 Mar 2003 18:02:14 -0000 Received: from vev@michvhf.com by www.pop4.net with qmail-scanner-0.96 (uvscan: v4.1.40/v4156. . Clean. Processed in 0.888613 secs); 19 Mar 2003 18:02:14 -0000 Received: from unknown (HELO paprika.michvhf.com) (67.36.71.182) by 0 with SMTP; 19 Mar 2003 18:02:11 -0000 Received: (qmail 26471 invoked by uid 1001); 19 Mar 2003 18:02:01 -0000 Date: Wed, 19 Mar 2003 13:02:01 -0500 (EST) From: Vince Vielhaber To: "pgsql-php@postgresql.org" Subject: Re: delayed passing of values in form In-Reply-To: <1047994747.3e77217b60bcd@webmail.nederhoed.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200303/20 X-Sequence-Number: 1932 On Tue, 18 Mar 2003, Robert-Reinder Nederhoed wrote: > My guess is you have sent the variables using POST and have also set a GET-querystring in the form target-url (named 'action'): > > action=\"$root/maindemoutputmap.php?prid=".$prid > > The default order of processing the query variables is GPC, being GET, POST and COOKIE. > So your GET querystring is overruled by the POSTed form-data. > > If you would like other behaviour, stop passing the $prid in the form action field: > > action=\"$root/maindemoutputmap.php\" Or pass it as a command line argument: action=\"$root/maindemoutputmap.php?".$prid."\" and pick it up inside as $argv[0] (provided your config allows command line args). Vince. -- Fast, inexpensive internet service 56k and beyond! http://www.pop4.net/ http://www.meanstreamradio.com http://www.unknown-artists.com Internet radio: It's not file sharing, it's just radio.
Industrial
Agricultural
Transportation