T O P I C R E V I E W |
rmmarsh |
Posted - 07 Oct 2010 : 23:04:14 I have two web pages that need to be protected. In my menu,which consists of a group name, and when you hover over it, it displays the sub-menus (I'm using AllWebMenus Pro). Each sub-menu links to the same password page for both pages. Is it possible, without having multiple password pages, to determine which menu button was clicked, so once passing the security check, I can go to the proper page? |
1 L A T E S T R E P L I E S (Newest First) |
s.dav |
Posted - 08 Oct 2010 : 09:01:52 Without knowing the structure of your site you can act in this way (using ASP or PHP code)
1- use a parameter in your link for knowing the referrer page
(ex. from "Menu item 1" use the link "myprotectedpage.ext?from=1" from "Menu item 2" use the link "myprotectedpage.ext?from=2")
2- in the "protectedpage.ext" (this is your destination page) you have to add a piece of PHP or ASP code and you need to read the "from" parameter (in ASP simply using Request.Querystring("from"), in PHP should be something like $GET["from"])
3- redirect to the page you want
|
|
|