$HTTP_POST_VARS
| From: | Joshua E Minnie | Date: | Thu, 21 Mar 2002 17:54:22 +0000 |
| Subject: | $HTTP_POST_VARS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89565@lists.php.net to get a copy of this message | ||
I need to access a variable on a form that allows multiples. I have to use
$HTTP_POST_VARS so I need to know how to display the information obtained
from the form. This is what I am using right now:
<?
reset($HTTP_POST_VARS["interest"]);
while(current($HTTP_POST_VARS["interest"])) {
echo
strip_tags(trim($HTTP_POST_VARS["interest"]))." ";
next($HTTP_POST_VARS["interest"]));
}
?>
Both $HTTP_POST_VARS["interest"] and $HTTP_POST_VARS["interest[]"] throw
errors. Any suggestions would be greatly appreciated.
--
Joshua E Minnie
CIO
josh@acsurf.net
"Don't work for recognition, but always do work worthy of recognition."