RE: [PHP] Question on query string
| From: | Stuart Felenstein | Date: | Tue, 16 Nov 2004 18:36:37 +0000 |
| Subject: | RE: [PHP] Question on query string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202195@lists.php.net to get a copy of this message | ||
--- "Ford, Mike" <M.Ford@leedsmet.ac.uk> 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 snippet
> looks very odd -- why are
> you trying to pass POSTed values as GET variables on
> (I presume) a form
> action?? Can you post a little context to the list
> to give us some idea
> what you're really trying to do.
Mike -
Not sure what context would be useful. The form
action is set to $_GET method. I should have noticed
POST in there but set those urldecodes via Dreamweaver
bindings. If you know what those are. Originally the
form was $_POST. Now - method="get"
The search.php form really does nothing with the
arrays. In searchresults.php I am grabbing the
variables like this:
$HTTP_GET_VARS['Ind']
if (count($Ind) > 0 AND is_array($Ind)) {
$s_Ind = "'".implode("','", $Ind)."'";
Stuart