RE: [PHP] concatenating form variables within PHP3

From: Date: Fri, 08 Sep 2000 14:26:34 +0000
Subject: RE: [PHP] concatenating form variables within PHP3
Groups: php.general 
Request: Send a blank email to php-general+get-15888@lists.php.net to get a copy of this message
Simple... echo "<input type=\"hidden\" name=\"D".$day."_".$time."SHOW\" value=\"$hold\"><br>"; I always find it is easier to type the HTML straight and then escape out your " and stuff when you go to PHP... It just makes it seem clearer to me... HTH Tom Walsh http://www.designgeek.com > for ($z=1; $z < 49; $z++) > { > > for ($y =0; $y < 7; $y++) > { > $hold = ${"D".$day."_".$time."SHOW"}; > echo "<input type='hidden' > name='D'.$day.'_'.$time.'SHOW' > value='$hold'><br>"; > $day++; > > } > $day =0; > $time++; > } > > PROBLEM: the name (ie. the text boxes names) are taken as text > literals ' D'.1.'_'.1'.SHOW' NOT D1_1SHOW

« previous php.general (#15888) next »