Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Referrer?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 07 Oct 2010 :  23:04:14  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
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?

s.dav
Site Admin

Italy
3364 Posts

Posted - 08 Oct 2010 :  09:01:52  Show Profile  Visit s.dav's Homepage  Reply with Quote
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


Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000