![]() |
| ||
| prevent user from going back or disable submit i have a form being filled. i don't want the user to be able to submit twice. how can i either prevent the user from going back or disable the submit button? i am currently disabling the submit button but when the user clicks back(from the next page) it asks whether it should resend data. when the data is resent it loads the original version of the page(without submit disabled). can someone help me with this? thanks. |
| ||
| Re: prevent user from going back or disable submit are you using asp or any other server side scripting language ? |
| ||
| Re: prevent user from going back or disable submit i'm using javascript |
| ||
| Re: prevent user from going back or disable submit Quote:
anything for server side ? |
| ||
| Re: prevent user from going back or disable submit no |
| ||
| Re: prevent user from going back or disable submit can't think of anything i'll post back if i can figure a way out... |
| ||
| Re: prevent user from going back or disable submit but if you aren't using any client side scripting language , how are you saving the data ? |
| ||
| Re: prevent user from going back or disable submit saving it to a file using php..is that a scripting language? |
| ||
| Re: prevent user from going back or disable submit Quote:
|
| ||
| Re: prevent user from going back or disable submit i tried using sessions.. i set a sessions variable to 1 if the form data was submitted. i check if the the variable is one on the concerned page and if it is i call a function which disables the submit button. but this doesnt work either. any thoughts about this? heres the code <?php |
| All times are GMT -4. The time now is 4:08 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC