Hi, is it possible to get information from url, for example http://www.xxx.com/test.php?firstchoice ... hoice=xxxx ?
I've had a scout of the manual, but haven't found it, so if someone can point me in that direction or tell I would be greatful.
Thanks
RedRasper
getting information from the url.
Moderator: General Moderators
if that is the URL that is calling the page, then all of the details after the ? will be available in $_GET variables with the & starting the beginning of the next variable. The URL will produce the following variables :
$_GET["firstchoice"] will = xxxx
$_GET["secondchoice"] will = xxxx
Hope thats what you were looking for?
$_GET["firstchoice"] will = xxxx
$_GET["secondchoice"] will = xxxx
Hope thats what you were looking for?
Of course if you are ahead of yourself and are thinking, "well doesn't that make my site grossly insecure" yes it does! ys the quick answer. BUT may i suggest you look into sessions, sessions validate if a user is indeed allowed to view the content, if not he will not be able to see the content even if he types it in the url of the browser.