Jump to content

[SOLVED] this make sense? if($_GET['anchor'] != null) { ???


alapimba

Recommended Posts

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 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

Link to comment
https://forums.phpfreaks.com/topic/60585-solved-this-make-sense-if_getanchor-null/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.