stockdalep Posted March 15, 2007 Share Posted March 15, 2007 Hi I have a form that that registerers details to a mysql database. My problem is when a field has been duplicated I am showing an error page that displays eg username already exists. Now in firefox I can go back and the form is still intact I just change the duplicate username and carry on. But in IE6 it will not go back or if it does a message displays information already submitted. Are there any work arounds for this. Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/42808-solved-ie6-v-firefox/ Share on other sites More sharing options...
Lumio Posted March 15, 2007 Share Posted March 15, 2007 That has nothing to do with php. Create a link on your errorpage and send all $_POST vars again Quote Link to comment https://forums.phpfreaks.com/topic/42808-solved-ie6-v-firefox/#findComment-207828 Share on other sites More sharing options...
wildteen88 Posted March 15, 2007 Share Posted March 15, 2007 A better way would be to display the errors on the same page as the form. Rather than showing the error then making the user click the browsers back button/link to go back to correct the errors Quote Link to comment https://forums.phpfreaks.com/topic/42808-solved-ie6-v-firefox/#findComment-208206 Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 wildteen is absolutely correct. I would use Javascript or Ajax (javascript with xml) to do the error checking without making the user back track. If you like the back tracking idea, than look into storing the $_POST or $_GET variables into $_SESSION data. php.net session Quote Link to comment https://forums.phpfreaks.com/topic/42808-solved-ie6-v-firefox/#findComment-208221 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.