Hello,
I have two types of form:
Type 1: Register / Login to redereciona to a static URL
Type 2: Register and Login to access restricted pages with dynamic URL.
What I mean by dynamic is that when the user uses the form of type 2, it will be redirected to the same page where he was, which may vary greatly. For example, if the user wants to insert a news opens the "New News" menu and form type 2 arises after login the user must be redirected to the page of the "New News", the same case to pages of any type of data entry and even to view other user profiles.
The question is, how do I redirect the user to the current page?
Thanks in advance,
BN
I have two types of form:
Type 1: Register / Login to redereciona to a static URL
Type 2: Register and Login to access restricted pages with dynamic URL.
What I mean by dynamic is that when the user uses the form of type 2, it will be redirected to the same page where he was, which may vary greatly. For example, if the user wants to insert a news opens the "New News" menu and form type 2 arises after login the user must be redirected to the page of the "New News", the same case to pages of any type of data entry and even to view other user profiles.
The question is, how do I redirect the user to the current page?
Thanks in advance,
BN