# This make sense? if($\_GET\['anchor'\] != null) {?

**URL:** <https://forum.kirupa.com/t/this-make-sense-if--get-anchor-null/232892>\
**Category:** Uncategorized\
**Created:** [July 18, 2007, 4:12pm UTC](https://forum.kirupa.com/t/this-make-sense-if--get-anchor-null/232892 "2007-07-18T16:12:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alapimba](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alapimba](https://forum.kirupa.com/u/alapimba)\
**Post date:** [July 18, 2007, 4:12pm UTC](https://forum.kirupa.com/t/this-make-sense-if--get-anchor-null/232892/1 "2007-07-18T16:12:37Z")

</div>

Hello  
what is wrong here? i want to do one action if on the url theres any anchor=…  
example… i have a link to index.php  
and i have another link to index.php?anchor=roger  
in one link i don’t want to do nothing  
on the second i want to echo roger.  
What is wrong in

```php
if($_GET['anchor'] != null) {

```

?  
And by the way… how to use this GET command if it’s inside an iframe? It’s not getting the url from the top page ☹  
Thanks in advance
