note 32300 deleted from control-structures.foreach by sniper
| From: | sniper@php.net | Date: | Wed, 08 Oct 2003 04:04:49 +0000 |
| Subject: | note 32300 deleted from control-structures.foreach by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58001@lists.php.net to get a copy of this message | ||
Note Submitter: coolmon@coolmon.com
----
Ever wondered what variables you posted a php page with a form? If you remember, the $_POST and
$_GET variables are associative arrays.
Say you post variables:
email
name
and phone
In the page that recieves those variables from the posted form you can do this:
foreach($_POST as $varName => $value)
print "Variable: $varName Value: $value<br>\n";
It'll return:
Variable: email Value:<it's value>
Variable: name Value:<it's value>
Variable: phone Value:<it's value>
Hope this helps!
Coolmon (aka Jason)