Re: passing an array from a form

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: passing an array from a form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2491@lists.php.net to get a copy of this message
how do you print the value="$date_times[$i]" ? should be like this: intentionally in two lines :) print "<input type=\"hidden\" name=\"dates_array[]\""; print " value=\"$dates_times[$i]\">"; or <input type="hidden" name="dates_array[]" value="<? print $dates_times[$i]; ?> -- Regards, -- Masood Nasir :-) [Systems Engineer] - http://www.masood.net ;) -- One Net, Lahore, Pakistan. <http://www.one.net.pk> On Wed, 21 Jun 2000, Erb, Maria wrote: > hi all, > I'm trying to pass an array from a form field but without much success. > Here is my code: <input type="hidden" name="dates_array[]" > value="$dates_times[$i]"> and I put this through a "for" loop. When i > see > what is inside of "$dates_array" all I get is "A" which is not one of the > items in the array. What am I doing wrong? > > Thanks for the help,. > > Maria > > Maria B. Erb > Web Developer > Keene State College > 603-358-2340 > > mail address: > MS 2707 / CMIT > 229 Main Street > Keene, NH 03435 > > > -- > 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 (#2491) next »