| | |
prevent user from going back or disable submit
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2009
Posts: 12
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jun 2009
Posts: 12
Reputation:
Solved Threads: 0
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
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
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<?php if($_SESSION['disable']==1){ echo "<script type="text/javascript"> disablesbmt(); </script>"; } ?>
![]() |
Similar Threads
- how to prevent user close window during script execution? (Shell Scripting)
- How to disable brouser back. (PHP)
- To disable Submit button (PHP)
- Access deny for backward (ASP.NET)
- "User Names" have disappeared from Welcome screen. (Windows NT / 2000 / XP)
- Prevent subsequent submits after initial submit (HTML and CSS)
- Prevent a User From Running or Stopping a Scheduled Process in Windows XP (Windows tips 'n' tweaks)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: php within echo statement / hide element
- Next Thread: Redirecting user to a login page
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate array automatically beta box bug calendar cart checkbox child class codes column cookies createrange() css cursor date debugger decimal design dom download dropdown editor element enter error explorer file firefox focus forms frameworks getselection google gwt html htmlform ie8 iframe images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent php player post problem programming progressbar prototype redirect regex runtime safari scale scriptlets search select session shopping size sql text textarea toggle variables w3c web website window windowofwords windowsxp wysiwyg \n





