Re: Question:maybe urldecode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Richard Lynch <ceo@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux