# GET. I'm I stupid, or is PHP?

**URL:** <https://forum.kirupa.com/t/get-im-i-stupid-or-is-php/195959>\
**Category:** Uncategorized\
**Created:** [August 4, 2006, 7:09am UTC](https://forum.kirupa.com/t/get-im-i-stupid-or-is-php/195959 "2006-08-04T07:09:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blazes](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@blazes](https://forum.kirupa.com/u/blazes)\
**Post date:** [August 4, 2006, 7:09am UTC](https://forum.kirupa.com/t/get-im-i-stupid-or-is-php/195959/1 "2006-08-04T07:09:29Z")

</div>

```php
<?php
session_start();
$logged = $_SESSION['s_logged_n'];
$uid = $_GET['uid'];
if(!$logged){
echo 'You must be <a href="index.php">logged in</a> logged in to upload footers.';
}
else{
echo $uid;
}
?>

```

I have this. In my URL I use, [www.website.com/file.php?uid=1](http://www.website.com/file.php?uid=1)

What does it echo? 0. why? No matter what number I use for uid, it’s always 0. Why? I’ve used get a million times, and never had this problem.:shifty:
