Re: POSTing Form Vars as Array ??
| From: | Miguel Cruz | Date: | Fri, 26 Jul 2002 05:41:32 +0000 |
| Subject: | Re: POSTing Form Vars as Array ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109679@lists.php.net to get a copy of this message | ||
On Fri, 26 Jul 2002, Monty wrote:
> Is it possible to pass variables from a form as an array to another PHP
> file? For example, I have this:
>
> <input type="text" name="db['email']" value="<? echo
> $db['email']; ?>">
You have some extra single quotes in there. Try this:
<input type="text" name="db[email]" value="<? echo
$db['email']; ?>">
miguel