RE: [PHP] Running for loop and concat. variables...
| From: | scott [gts] | Date: | Wed, 11 Jul 2001 18:31:19 +0000 |
| Subject: | RE: [PHP] Running for loop and concat. variables... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57466@lists.php.net to get a copy of this message | ||
this is like the last post on form submissions with
individually numbered elements...
if you can use an array, you should... it'll
make things easier for you in the long run.
> -----Original Message-----
> From: Jeff Lewis [mailto:jeff@hyrum.net]
> Sent: Wednesday, July 11, 2001 2:15 PM
> To: php-general@lists.php.net
> Subject: [PHP] Running for loop and concat. variables...
>
>
> I have a page with about 80 checkboxes on it. The values are names and my
> users are to select names. Now on the next step I want to be able to list
> all names processed. I thought a for loop would be best but am having
> problems. $ffromx is the number of checkboxes generated in the previous
> step. So I want to step through each to make sure that they were checked
> or not and then display them.
>
> for ($i = 0; $i <= $ffromx; $i++) {
> if ($ffrom.$i){
> echo $ffrom.$i."<BR>";}
> }
>