note 16195 added to ref.array

From: Date: Fri, 19 Oct 2001 16:59:59 +0000
Subject: note 16195 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-19159@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 -- http://www.php.net/manual/en/ref.array.php http://master.php.net/manage/user-notes.php?action=edit+16195 http://master.php.net/manage/user-notes.php?action=delete+16195 http://master.php.net/manage/user-notes.php?action=reject+16195

« previous php.notes (#19159) next »