RE: [PHP] $HTTP_POST_VARS

From: Date: Thu, 21 Mar 2002 17:56:53 +0000
Subject: RE: [PHP] $HTTP_POST_VARS
Groups: php.general 
Request: Send a blank email to php-general+get-89566@lists.php.net to get a copy of this message
$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:josh@acsurf.net] Sent: Thursday, March 21, 2002 11:54 AM To: php-general@lists.php.net 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"]))."&nbsp;&nbsp;&nbsp;"; 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." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#89566) next »