note 16195 deleted from ref.array by jimw
| From: | jimw@php.net | Date: | Fri, 19 Oct 2001 18:10:24 +0000 |
| Subject: | note 16195 deleted from ref.array by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19175@lists.php.net to get a copy of this message | ||
You can create an array using form variables! On your form page, just name your <INPUTs> like
this:
<FORM ... >
Name: <INPUT NAME='MyForm[Name]'> <BR>
Email: <INPUT NAME='MyForm[Email]'>
</FORM>
On the next page, PHP will automatically have an array called MyForm with two items in it - Name and
Email, accessible via:
$MyForm["Name"] and
$MyForm["Email"]
-- Jonathan