Jump to content

Previous page?


monkeypaw201

Recommended Posts

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.

 

 

Link to comment
Share on other sites

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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.