Re: displaying form array values

From: Date: Thu, 01 Mar 2001 03:01:00 +0000
Subject: Re: displaying form array values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42116@lists.php.net to get a copy of this message
Hi Claudia, Something like : $msg = 'Destination :'; foreach ($Destination as $place) { $msg .= "\n\t $place"; } Regards, Philip Olson http://www.cornado.com/ On Wed, 28 Feb 2001, Claudia wrote: > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#42116) next »