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