passing variables

From: Date: Tue, 06 Mar 2001 22:33:27 +0000
Subject: passing variables
Groups: php.general 
Request: Send a blank email to php-general+get-42818@lists.php.net to get a copy of this message
I am trying to build a dynamic form, and I am using the code below to let the user ,name the fields that are generated,but i want to give the user the option of changing the field size but I cant get it to work. TIA george for ($i=0; $i < $fields; $i++) { $fieldName = "field$i"; echo "<tr><td><input type=text name=\"$fieldName\" value=\"${$fieldName}\">\n"; } echo "<input type=hidden name=\"fields\" value=\"$fields\">\n</td></tr>";

« previous php.general (#42818) next »