Jump to content

[SOLVED] index.php?variable - how to check if it's set?


Hyaku_

Recommended Posts

Hi!
I have seen some sites have URL's like:
[code]somesite.com/somepage.php?variable[/code].
I have a page user.php, but when user want to loggout, I pass the query by URL:
[code]user.php?logout=true[/code]
Instead I would like to just go with:
[code]user.php?logout[/code]
but how can I check if that variable is there or no? When I do $_REQUEST['logout'], It doesn't return anything. Thanks!

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.