> > Or you could try this:
> >
> > $categories_array = array();
> >
> > for( $j = 0; $j < $categories_count; $j++ ) {
> > $tempval = "str_categories".$j;
> > $categories[$j] = $_REQUEST[$tempval];
> > }
>
> Or you could get really fancy and try this (my preferred method if not a
> little confusing):
>
> $j = -1;
> $categories_array = array();
>
> while(++$j < $categories_count)
> {
> $categories[$j] = $_REQUEST["str_categories".$j];
> }
And your while loop is going to be much faster than the for loop...
:)
--
BigDog
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php