Re: Question: Repopulating form parameters

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

 



--- php-list-replies@xxxxxxxxxxxxxxxxxxxxx wrote:

> you (just) need to mark the previously chosen items
> as "selected" in 
> the repopulated list. the "highlighting" part is a
> basic html/form 
> issue. i.e., if you have questions on this you
> should look at how, on 
> a simple (html-only) form, an item on a list is
> marked (highlighted) 
> as the default. obviously you have set up your code
> so that you know 
> what's been selected previously and then put out the
> necessary html 
> when you repopulate.
> 
This makes sense, however I'm still spacing out trying
to figure out then where I place the "option value
selected" in this html / php code:

<select name="Ind[]" size="8" multiple="multiple"
id="Ind[]" >
<?php while($row = mysql_fetch_array($inds,
MYSQL_BOTH)) { echo '<option
value="'.$row['CareerIDs'].'">'.$row['CareerCategories'].'</option>
'; ?>

I'm pretty sure I need to loop through the $_Get of
the array.   Not sure , and haven't found anything
that shows this.

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