|
Posted by Oli Filth on 10/24/13 11:29
onefastmustang said the following on 17/10/2005 18:22:
> 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];
^ ^
^ ^
Missing quotes here?
Also, you can't concatenate arrays like this. Try array_merge() instead.
>
>
> if ($roles) {
> $sqls = $sqls. " and profiles.role IN (";
> foreach ($roles as $key => $value){
> $sqls = $sqls. "$value,";
> }
> $sqls = substr("$sqls", 0 , -1);
> $sqls .= ")";
> }
>
--
Oli
Navigation:
[Reply to this message]
|