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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]