Re: Question: Repopulating form parameters

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

 



On Sunday 12 December 2004 18:15, Stuart Felenstein wrote:

> Still stuck on this one.  I know I'm doing something
> wrong and wouldn't mind some correction:

Did you mockup some test HTML in a wysisyg editor as suggested?

> Code now:
>
> if (count($Ind) > 0 AND is_array($Ind)) {
>     $Ind = "'".implode("','", $Ind)."'";
>
> <select name="Ind[]" size="8" multiple="multiple"
> id="Ind[]" >
> <?php
> $selected = $_GET['Ind'];
> while($row = mysql_fetch_array($inds, MYSQL_BOTH)) {
> if ($selected==$row['CareerIDs']) echo ' selected';
> echo '<option
> value="'.$row['CareerIDs'].'">'.$row['CareerCategories'].'</option>';
>
>    }
> ?>

Did you compare the mockup HTML with that produced by your code above?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Polymer physicists are into chains.
Ö
*/

-- 
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