Re: Question...

From: Date: Mon, 14 Aug 2000 14:15:51 +0000
Subject: Re: Question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11600@lists.php.net to get a copy of this message
Dustin Leggans wrote: > Hello.. > > I am trying to assign an HTML form NAME to "$f[]" from within the PHP > program.. It does not seem to be working correctly.. I believe that php is > turning the "$" into some sort of ascii, or URL encoded character and > therefore php will not process it as an array > > Here is an example of how my program looks now: > > while (list ($key, $val) = each ($fields)) { > print "$key : <input type=\"text\" size=\"30\" > MAXLENGTH=\"60\" > name=\$f[] value=\"$val\"><br>"; > } Don't use the $ in the html form it's just: while (list ($key, $val) = each ($fields)) { print "$key : <input type=\"text\" size=\"30\" MAXLENGTH=\"60\" name=f[] value=\"$val\"><br>"; } > > > Any suggesstions... > > Thanks, > Dustin > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11600) next »