Re: Making variables with an iteration?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 06 December 2004 22:28, Robert Sossomon wrote:
> I've got some inputs, which I need to tie down to only have 4 come in from.
>  The javascript to verify it is working somewhat, however I want to create
> the parsing script to loop through the inputs (choice) and then dump them
> into $choice1, $choice2, $choice3, $choice4 respectively.
>
> I have to use checkboxes with different names with the javascript checkers
> I am using, since they seem to be working, however I can't seem to get the
> PHP in the parser to write the variables.  Any ideas?
>
> <SNIP>
> for ($j=1, $j<5, $j++)
> {
>   $choices.$j= $_POST['choice'.$i];
> }

So what do you get when you run that? Strawberry sundae with chocolate on top? 
(I usually only get a chicken and ham sandwich).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Where's the Coke machine?  Tell me a joke!!
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux