intval($mybb->input['id']
#1
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????
Reply
#2
That's exactly what intval is supposed to do...
Support PMs will be ignored!
Reply
#3
http://php.net/intval

"The integer value of var on success, or 0 on failure"
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#4
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!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)