Jump to content

Previous page?


monkeypaw201

Recommended Posts

NEVER RELY ON JAVASCRIPT

 

html is your true friend javascript may not be around to help out!

 

PS i concur with dptr - passing the previous url (or something that would allow you to get it like an id to a page in the database) is the best option.

Link to comment
https://forums.phpfreaks.com/topic/102233-previous-page/#findComment-523405
Share on other sites

Yes, having the previous page passing it's URL or "id" is the best way. That will gurantee that you get back to the page that 'called' the script and won't have to depend on the browser like the $_SERVER['HTTP_REFERER'] or JavaScript methods would.

 

 

 

Yeah, that's what I do in all of my scripts (when I need to), which is why I suggested it.  I only suggested JS because he might get a bit confused with the PHP.

Link to comment
https://forums.phpfreaks.com/topic/102233-previous-page/#findComment-523409
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.