RE: [PHP] Question on query string

2004-11-16 Thread Robby Russell
On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: > I think maybe > > $jtitle=$HTTP_GET_VARS['JTitle']; > Might I remind you that $_HTTP_*_VARS is deprecated.. $_GET $_POST (it's also much quicker to type) -Robby -- /*** * Robby Russell | Owner.

RE: [PHP] Question on query string

2004-11-16 Thread Robert Cummings
On Tue, 2004-11-16 at 20:24, Robby Russell wrote: > On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: > > I think maybe > > > > $jtitle=$HTTP_GET_VARS['JTitle']; > > > > Might I remind you that $_HTTP_*_VARS is deprecated.. > > $_GET > $_POST > (it's also much quicker to type) And no

RE: [PHP] Question on query string

2004-11-16 Thread Jason Oakley
9:38 AM To: Ford, Mike; '[EMAIL PROTECTED] ' Subject: RE: [PHP] Question on query string --- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > > //Textfields / Dropdown > > $HTTP_GET_VARS['JTitle']; > > $HTTP_GET_VARS['City']; > &g

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein on Tuesday, November 16, 2004 1:35 PM said: > I'm not seeing what is incorrect. I did try > $HTTP_GET_VARS['Ind'] = urldecode('Ind'); (in > searchresults.php) but of course it wasn't imploded > yet. I don't want to confuse this question or myself >

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > > //Textfields / Dropdown > > $HTTP_GET_VARS['JTitle']; > > $HTTP_GET_VARS['City']; > > $HTTP_GET_VARS['Days']; > > And thrice ditto. > They looked good, gone now :) Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > Did you purposefully ignore my previous email??? > Someone else I think > mentioned this in another email in this thread also. > Why are you > assigning anything to $HTTP_GET_VARS at all? It's > meant to retrieve > data. > > // (again) this is h

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Stuart Felenstein > To: [EMAIL PROTECTED] > Sent: 16/11/04 21:35 > Subject: Re: [PHP] Question on query string > For search

Re: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > When you're building a query string then (in > general) there is no need for > urldecode(). On the contrary you want to use > urlencode(), this is done on the > *value* of the individual parameters. > > And about this: $_POST["Ind[]"], it's obvious

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > The main problem with the above snippet that I can > see is that there's very > unlikely to be such a thing as $_POST["Ind[]"] -- > form fields with > name="Ind[]" will turn up as an array in > $_POST["Ind"] ($_POST["Ind"][0], > $_POST["Ind"][1], etc

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 November 2004 16:28, Stuart Felenstein wrote: > --- Richard Davey <[EMAIL PROTECTED]> wrote: > > > > Use urldecode() to get them back to "normal" again. > > Changed the for

Re: [PHP] Question on query string

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 00:28, Stuart Felenstein wrote: > --- Richard Davey <[EMAIL PROTECTED]> wrote: > > Use urldecode() to get them back to "normal" again. > > Changed the form action line to this: > > action="searchresults.php?Ind= urldecode(((isset($_POST["Ind[]"]))?$_POST["Ind[]"]:""))

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein on Tuesday, November 16, 2004 8:28 AM said: > --- Richard Davey <[EMAIL PROTECTED]> wrote: > >> Use urldecode() to get them back to "normal" again. [snip] > Or should I do a $_GET['Ind'] = urlencode('Ind') on > searchresults.php ? hth, chris.

Re: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Richard Davey <[EMAIL PROTECTED]> wrote: > Use urldecode() to get them back to "normal" again. Changed the form action line to this: action="searchresults.php?Ind=http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question on query string

2004-11-16 Thread Richard Davey
Hello Stuart, Tuesday, November 16, 2004, 2:06:03 PM, you wrote: SF> Why is each value preceeded by the %5B%5D ? I think the % is for SF> wildcards, but for the life of me can't figure out what 5B and 5D SF> stand for. SF> Ind%5B%5D=2&Ind%5B%5D=3&Ind%5B%5D=4&Ind%5B%5D=5.. They're hex va

Re: [PHP] Question on query string

2004-11-16 Thread David Bevan
On November 16, 2004 09:06, Stuart Felenstein wrote: > Why is each value preceeded by the %5B%5D ? I think > the % is for wildcards, but for the life of me can't > figure out what 5B and 5D stand for. > > Ind%5B%5D=2&Ind%5B%5D=3&Ind%5B%5D=4&Ind%5B%5D=5.. Stuart, The % is an escape charac

[PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
I hope this is a reasonable question: This is the query string my search page is kicking out to the results page. It works fine but curious about these codes or characters. And I know this maybe unrelated to PHP, so I'll apologize in advance: Why is each value preceeded by the %5B%5D ? I think