need help w a for loop
| From: | Redmond Militante | Date: | Mon, 20 Oct 2003 21:15:11 +0000 |
| Subject: | need help w a for loop | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166850@lists.php.net to get a copy of this message | ||
hi all
i'm in need of pointers on how to get the following for loop working correctly
for($j=0; $j < $categories_count; $j++){
$categories_array = array();
$tempval="str_categories".$j;
array_push($categories_array,'$_REQUEST['.$tempval.']');
}
it looks like it's appending the string '$_REQUEST['str_categories0']' to
the array $categories_array, instead of the actual value of $_REQUEST['str_categories0'] -
the actual value is being passed correctly to the page because i can echo it out...
any advice would be appreciated
thanks
redmond
--
FreeBSD 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Fri Oct 3 21:30:51 CDT 2003
4:00PM up 6 days, 7:41, 2 users, load averages: 1.05, 1.01, 1.00
The best cure for insomnia is to get a lot of sleep.
-- W. C. Fields