Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Javascript Back Button Image And Refresh

Javascript Back Button Image And Refresh
Thread Tools
Junior Member
Join Date: May 2003
Status: Offline
Reply With Quote
May 4, 2005, 12:16 PM
 
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]<input type="image" name="back" width="92" height="28" src="../img/buttons/goback.gif" value="Go Back" onClick="javascript: history.back;" />[/PHP]

I've also tried...

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

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

Take care,
Jon Marus
www.jmarus.com - kicks by JM
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2