displaying form array values

From: Date: Thu, 01 Mar 2001 02:46:01 +0000
Subject: displaying form array values
Groups: php.general 
Request: Send a blank email to php-general+get-42113@lists.php.net to get a copy of this message
I would like to know how to add form array values to a mail message. I have my form defined as follows: select form name set as: <select name="Destination[]" size="3" multiple> <option value="Not sure">Not sure</option> <option value="Acapulco">Acapulco</option> <option value="Alabama">Alabama</option> <option value="Arizona">Arizona</option> <option value="Bahamas">Bahamas</option> <option value="Baja">Baja</option> </select> I am not sure how to pull the values from the Destination array Here is some code that does not work: (this script is adding the form info to a mail message) $msg .= "Destination:\n"; $i = 0; if ($Destination[$i] !="") { do { $msg .= "\t$Destination[$i]\n"; $i == $i + 1; } while ($Destination[$i] !=""); } I receive an out of memory message -- must be adding the same value over and over...or something

« previous php.general (#42113) next »