Re: Passing Array to Form
| From: | Merlin | Date: | Sun, 20 Apr 2003 08:20:29 +0000 |
| Subject: | Re: Passing Array to Form | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27188@lists.php.net to get a copy of this message | ||
maybe the brackets are causing the problem. Try to do that one:
echo '
<input type="text" name="'.$userEdit[FName].'"
size="20">
';
Hope this helps.
Cheers,
Merlin
--
Worldwide Travel Community
http://www.globosapiens.net
"Squirrel User" <squirrel@isot.com> schrieb im Newsbeitrag
news:1050790423.3ea1ca17a08b1@webmail.isot.com...
> 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