VariableName

From: Date: Thu, 24 May 2001 11:44:27 +0000
Subject: VariableName
Groups: php.general 
Request: Send a blank email to php-general+get-54202@lists.php.net to get a copy of this message
Hello ! I want to make a dynamic formular, on which the user can enter a different number of names. So to make the form I do: for ($i = 0; $i < $anzahl; $i++) { printf ("<INPUT TYPE=\"TEXT\" NAME=\"Name%.0d\" VALUE=\"\" SIZE=20\">\n", $i); } Now I want to set all the Varables Name0, Name1, Name2 etc. to a default-value. How can I do it in a for-next-loop ? Regards Martin

« previous php.general (#54202) next »