Re: Question: Repopulating form parameters

From: Date: Sun, 12 Dec 2004 11:09:27 +0000
Subject: Re: Question: Repopulating form parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204092@lists.php.net to get a copy of this message
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. Ö */

« previous php.general (#204092) next »