kgp43
asked on
Check if int is between negative and positive values
Hi,
Why does this not work?
($connection_port_top_angl e = -370)
if(($_GET["connection_port _top_angle "] >= -360) && ($_GET["connection_port_to p_angle"] <= 360)) {
- This return true..
- Only allow numbers between -360 and +360
Why does this not work?
($connection_port_top_angl
if(($_GET["connection_port
- This return true..
- Only allow numbers between -360 and +360
You said $connection_port_top_angle = -370, but you're evaluating $_GET["connection_port_top _angle"].
One is a normal variable and the other is an array element. They are not referring to the same thing.
So why not provide more detail and/or context?
One is a normal variable and the other is an array element. They are not referring to the same thing.
So why not provide more detail and/or context?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect, thanks a lot.
Thanks for the points - great question!
does that work
if($connection_port_top_an
Regards