Posted by Siv Hansen on 10/18/05 09:42
onefastmustang wrote:
> I am using that exact syntax.. I misspoke before.. POST does not work
> either.. The reason I was using GET is that the client wants to be
> able to use the back button on the browser without getting the PAGE
> EXPIRED page..
>
> my form looks like this..
> <input type="checkbox" value= "1" name="roles[]" >
> <input type="checkbox" value= "2" name="roles[]" >
>
> The reciveing code looks like this..
>
>
> $roles = $_GET[roles]. $_POST[roles];
Do you use both get and post at the same time? If you want to use a
method that doesn't care wether the post or get method is used try request..
$roles = $_REQUEST['roles'];
>
>
> if ($roles) {
> $sqls = $sqls. " and profiles.role IN (";
> foreach ($roles as $key => $value){
> $sqls = $sqls. "$value,";
> }
> $sqls = substr("$sqls", 0 , -1);
> $sqls .= ")";
> }
>
Your error message is for the loop that goes through the query to the
database. I can't see why you try to loop the way you do. Could you try
to explain what you're trying to retreive in that query?
Navigation:
[Reply to this message]
|