MyBB Community Forums

Full Version: intval($mybb->input['id']
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to return the value of the input: test.php?action=read&id=this with intval($mybb->input['id'] but it returns 0 whenever the value is not numeric!

$_GET['id'] does return it but it's not secure! Any ideas????
That's exactly what intval is supposed to do...

"The integer value of var on success, or 0 on failure"
Strange case I use this like this: echo $mybb->input['id']; yet it returns 0 or nothing

My bad it does echo the vale sorry!