Forum Moderators: coopster

Message Too Old, No Replies

Quick question

         

Rex_Fenris

10:12 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



Hey all, just a quick question, not sure if it's a stupid one or not...

Is there a way in PHP (or javascript for that matter) to duplicate the effect of hitting the back button on the browser?

When a user is trying to update their information in my system, and encounters an error while doing so, I want the error page to have a link to "return to the previous page". If I link to the page directly, none of their information is put into the form.

Thanks :)

[edited by: Rex_Fenris at 10:14 pm (utc) on June 22, 2005]

schwartz

10:13 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



in the href put javascript:history.back();

Rex_Fenris

10:16 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



Oh =P Perfect, thanks ^.^