Re: Question:maybe urldecode
| From: | Stuart Felenstein | Date: | Sat, 11 Dec 2004 09:00:00 +0000 |
| Subject: | Re: Question:maybe urldecode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204038@lists.php.net to get a copy of this message | ||
--- Richard Lynch <ceo@l-i-e.com> wrote:
> > I made the correction , using $_GET now. Values
> are
> > printing out, aside from the select lists (arrays)
> > which print out as "array".
>
> Yes.
>
> An array will print as "Array"
>
> You'll need to dig into the Array for what you need,
> or implode it, or
> something.
>
I'm imploding the arrays and the correct values are
returned. Still this is what I'm struggling with:
If I put this querystring back into the url:
http://www.lurkingforwork.com/myownsearch.php?Ind[]=1&JTitle=&City=Winchester&Days=&Recs=15&Submit=Submit
The "textfield" City is repopulate with the value -
Winchester.
The select list Ind[] though is not.
I thought perhaps I need to do a loop for the Ind[]
value, so I tried this:
<select name="Ind[]" size="8" multiple="multiple"
id="Ind[]" value="<?php foreach ($Ind as $value) {
echo $value; }?>">
I was wrong there as well.
Just to repeat. I want to take the query string
created from the user's choices / search parameters
and repopulate the form by applying the querystring on
the form. www.mysite.com/search?"querystring".
Does this make sense ? Am I being clear in what I'm
asking ?
Stuart