Skip to main content
Home Forums MacNN Javascript Back Button Image And Refresh — #1
Post #1 by jon31
Source ForumMacNN
CategoryTroubleshooting
Post DateWed, 4 May 2005 - 12:16
Original URLhttps://web.archive.org/web/20050522081840/https://forums.macnn.com/showthread.php?t=254907
Post
Hello folks,

I'm setting up a fairly simple website, and I've got a registration form that when you enter the wrong information, or forget to enter something, it goes to an error page with a back button. Fairly simple procedure. But the problem is that when I click back, it's refreshing the registration form, and losing all the inputted data. I have no idea what's causing this, I've tried it in Safari and Firefox and I've got some PC people to test it too, with the same results. Here is my simple back button code:

PHP Code:
<input type="image" name="back" width="92" height="28" src="../img/buttons/goback.gif" value="Go Back" onClick="javascript: history.back;" />


I've also tried...

PHP Code:
<input type="image" name="back" width="92" height="28" src="../img/buttons/goback.gif" value="Go Back" onClick="history.go(-1);" />


Any ideas? This problem is making me pull my hair out.

Take care,
Jon Marus
mp.ls