Re: HELP - POST method problem .......

From: Date: Wed, 16 Apr 2003 22:31:21 +0000
Subject: Re: HELP - POST method problem .......
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-19457@lists.php.net to get a copy of this message
My reading of the original problem was that a multi-row form needed to be passed to a response page and parsed. Now without any manipulation this will simply repeat the variable names in each row and parsing will produce just the result of the most recent row handled. You need to change the variable name to include the row number thus giving a unique set of variables for each row which, if read correctly, can produce sensible results. If that is what Anders is looking for the answer is 'variable variables' and I have used these previously. If you need any more info on them, let me know. Cheers George (was in Oxford but now in Edinburgh until Tuesday) > -----Original Message----- > From: RT [mailto:rthomp@sympatico.ca] > Sent: 16 April 2003 10:26 pm > To: PHP Windows > Subject: Re: [PHP-WIN] HELP - POST method problem ....... > > > If I understand you right, all variables are past in a global array $_POST > you can use something like > > foreach($_POST as $key => $value) > { > } > > Look up foreach in the PHP manual for more information. > > > > A. Mikkelsen wrote: > > >Thanks > > > >but how do i scan the varibales??? > > > >//Anders > >"B.A.T. Svensson" <B.A.T.Svensson@lumc.nl> wrote in message > > >>news:000301c30425$97215130$ce017c0a@3-hkg-02-0028.lumc.nl... > > > > > >>> Is there a way to find the names of the variables POST'ed from > >>> > >>> > >order.php ?? > > > > > >>To be more specific than my prvious answer: > >>The client will send a HTTP response something like this: > >> > >>POST <showorder.php> > >>Referer: http://<something> > >>Connection: Keep-Alive > >>User-Agent: <something> > >>Host: <something> > >>Accept: <something> > >>Contentent-lenght: <length of the text that follows> > >><varibale name1>=<varibale content1> > >><varibale name2>=<varibale content2> > >><varibale name3>=<varibale content3> > >><varibale name4>=<varibale content4> > >><varibale name5>=<varibale content5> > >><varibale name6>=<varibale content6> > >><etc> > >> > >> > >>You just have to scan all the <variable name#> to figure out > >>what was created in the original HTML pages POST. > >> > >> > > > > > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#19457) next »