I have a script that after the form is submitted.... if nothing happens for 30 seconds then it needs to refresh the page and give an error message.
what is he talking about? most browser do this by their default capalbilities.. there will be a error message if the browser cant able to progress to the server.. -_-
Well for starts you said "I have a script that after the form is submitted..." not "I need a script". And that's clientside stuff man, you can print out a javascript that will reload the page I guess if it's still there in 30 seconds, and if it goes through on the serverside have it print out a javascript that redirects immediately, but I'm not seeing the point, you should almost never need to do that and I think you're going to run into some bigger issues if you start resubmitting form data like that.