CassidyHunt
IS-IT--Management
I know in ASP or ASP.Net you can get variables from the url by using Request.Querystring("VariableName").
Right now I am trying to check if a variable exists in the URL and if it does make a decision on that for what to show.
Currently I have this setup:
When the page appears and u variable is not present I get an indexing error. I do not want use a form or post method. I would like to be able to just place it in a hyperlink and test for it.
Any help would be greatly appreciated.
Cassidy
Right now I am trying to check if a variable exists in the URL and if it does make a decision on that for what to show.
Currently I have this setup:
Code:
if(is_null($_GET['u']))
{
//Do this
}
else
{
//Do this
}
When the page appears and u variable is not present I get an indexing error. I do not want use a form or post method. I would like to be able to just place it in a hyperlink and test for it.
Any help would be greatly appreciated.
Cassidy