# Why does this not return true?

**URL:** <https://forum.kirupa.com/t/why-does-this-not-return-true/154948>\
**Category:** programming\
**Created:** [July 13, 2005, 8:02pm UTC](https://forum.kirupa.com/t/why-does-this-not-return-true/154948 "2005-07-13T20:02:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxdefinition](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@maxdefinition](https://forum.kirupa.com/u/maxdefinition)\
**Post date:** [July 13, 2005, 8:02pm UTC](https://forum.kirupa.com/t/why-does-this-not-return-true/154948/1 "2005-07-13T20:02:41Z")

</div>

when I use this code and pass the uId of 55 I expect it to return “cool”.

but I get “not” when I type

[[color=#0000ff]http://myurl.com/test.php?uId=55[/color]](http://myurl.com/test.php?uId=55)

any ideas.

```php
 
<?php 
 
$uId = $_GET['uId']; 
 
function Secure(){ 
if($uId == 55){ 
return true; 
} 
} 
 
if(Secure()){ 
echo "cool"; 
}else{ 
echo "not"; 
} 
?> 
 

```
