Re: Making variables with an iteration?
| From: | Robert Sossomon | Date: | Mon, 06 Dec 2004 15:13:05 +0000 |
| Subject: | Re: Making variables with an iteration? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203592@lists.php.net to get a copy of this message | ||
<SNIP>
Parse error: parse error, expecting `';''
coded:
<?php
for ($j=1, $j<5, $j++)
{
$choices.$j= $_POST['choice'.$i];
echo $choices.$j;
}
?>
--
Robert Sossomon, Business and Technology Application Technician
4-H Youth Development Department
200 Ricks Hall, Campus Box 7606
N.C. State University
Raleigh NC 27695-7606
Phone: 919/515-8474
Fax: 919/515-7812
robert_sossomon@ncsu.edu