Passing Array to Form

From: Date: Sat, 19 Apr 2003 22:13:43 +0000
Subject: Passing Array to Form
Groups: php.db 
Request: Send a blank email to php-db+get-27186@lists.php.net to get a copy of this message
I've read the user info from database and trying to edit the info using a form. But I can't seem to pass the array values to the form using method below. But it does work if I use non array variable. Any idea? $userEdit[FName] = "John"; $userEdit[LName] = "Williams"; ... $forminfo = <<<EOD <form method="POST" action="$PHP_SELF"> ... ... <input type="text" name="$userEdit[FName]" size="20"> <input type="text" name="$userEdit[LName]" size="20"> ... ... EOD; ------------------------------------------------- This mail sent through ISOT. To find out more about ISOT, visit http://isot.com

« previous php.db (#27186) next »