javascript - let jquery know which was the last visited php page? -


This is a bit tricky.

Usually when someone clicks the link that requires registration, this person will be redirected to the registration page and will be sent back to the previous visit page. This is the possible reason that the link is registered through the url. PHP, which uses the key to return to the previous visit page.

But I want to use jquery ajax for registration basically Ive got 3 different php pages. All of them include the same header.php and there is a registration button in the header.php Iive in which I have an ID tag. When this button is clicked ($ (# registration_button). Click () ... ) Jquery will display a box (a division hidden in the center of the browser), with registration information, it will be registered and I will be taken to the last visit page, which means that at present she sees I can see a registered user To be able to show all the links, the php-page has to be refreshed, so I have to use the window. place.

For the question now. How do I know jquery which page is the current page that he is seeing? Ive got 3 php-pages.

If you have nothing to understand, please ask for free. Or if you get suggestions of other solutions, let me know but I really want to display the registration box right now without redirecting it to any other page.

You can set cookies to start / read them in php initially and then via js .


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -