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=2Ind%5B%5D=3Ind%5B%5D=4Ind%5B%5D=5..
Stuart,
The % is an escape character to
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=2Ind%5B%5D=3Ind%5B%5D=4Ind%5B%5D=5..
They're hex values.
--- 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=?php echo
urldecode(((isset($_POST[Ind[]]))?$_POST[Ind[]]:))
Still getting this:
?Ind%5B%5D=1Ind%5B%5D=2Ind%5B%5D=3
I'm under
Stuart Felenstein mailto:[EMAIL PROTECTED]
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 ?
?php
// this is what
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=?php echo
urldecode(((isset($_POST[Ind[]]))?$_POST[Ind[]]:))
When
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 form action
--- 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.). But the whole
--- 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 you
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 searchresults.php (right below
--- 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 how you use
--- 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:
Stuart Felenstein mailto:[EMAIL PROTECTED]
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
(or
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'];
$HTTP_GET_VARS['Days'];
And thrice ditto.
They looked good, gone now :)
Stuart
--
PHP
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 not as backward
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 |
15 matches
Mail list logo