Re: Question: Repopulating form parameters

From: Date: Sun, 12 Dec 2004 12:18:46 +0000
Subject: Re: Question: Repopulating form parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204095@lists.php.net to get a copy of this message
--- Jason Wong <php-general@gremlins.biz> wrote: > > Close but no cigar. Since $Ind is already > imploded my > > thinking is it need not be incremented in the echo > > statement ? > > You tell me, print_r() and var_dump() it before you > use it and decide whether > it is correct. > > One final thing: '$Ind' is not the same as "$Ind". > If I choose 1, 2 , 3 then print_r($Ind); returns '1','2','3' This looks okay. I'm passed the parsing errors. Semi colon was me trying to stop parsing errors. <?php while($row = mysql_fetch_array($inds, MYSQL_BOTH)) { echo '<option value="'.$row['CareerIDs'].'">'; if (!(strcmp($row_rsInd['CareerIDs'], "$Ind"))) {echo "SELECTED";} echo $row['CareerCategories'].'</option>'; I could not find a difference with '$Ind', or "$Ind", except I would think '$Ind' is correct, since " " would be a literal string. Any more hints ? :) Stuart

« previous php.general (#204095) next »