How to redirect the user to the specific page if logged in?
<p>This was what i want i had three buttons in my page.
this three buttons had three different page links .
If user clicks before he log in it will directing him to login page that contains username and password and login button.
After he enters the information then it should redirect him to the specific page 
But i had only one login page that iam using for the three different buttons.</p>

<p>Send me the answer in a way that the variable should store the url  info and should redirect to the specific page </p>
