$interest = $HTTP_POST_VARS['interest']; or (if using PHP 4.1) $interest = $_POST['interest'];
then reference $interest[0], $interest[1], $interest[2],... -----Original Message----- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [PHP] $HTTP_POST_VARS 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 [EMAIL PROTECTED] "Don't work for recognition, but always do work worthy of recognition." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

