| | |
To disable Submit button
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2007
Posts: 30
Reputation:
Solved Threads: 2
•
•
•
•
How can I disable the submit button with JAVA Script untill all the mandatory fieleds are filled? if any body can help.. its urgent please
Then on each mandatory field put
PHP Syntax (Toggle Plain Text)
onBlur="function();"
Call the same "function();" on each filed blur.
I hope this is clear.
Cheers...
Looking at my own code of Life and thinking what the hell is this....
------------------------------------
Middle East B2B Marketplace
Dubai Web Design
Dubai SEO
------------------------------------
Middle East B2B Marketplace
Dubai Web Design
Dubai SEO
You could try to write a function that will check each field for correctness and then use the form id to submit it with javascript. Instead of having a submit input use a button instead that onclick calls the function.
I think thats right, but the idea is there.
PHP Syntax (Toggle Plain Text)
<script type="text/javascript"> function checkThenSubmitForm() { <!-- form checking instructions -->; document.getElementById('theForm').submit(); return true; } </script> <form id="theForm" action="whatever.php" method="post"> <!-- THE INPUT FIELDS --> <input type="button" value="Submit" onclick="checkThenSubmitForm()">
The purpose of my existence is why I am here.
![]() |
Similar Threads
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
- submit button (JSP)
- VB6 submit button sends information to BBChat (Visual Basic 4 / 5 / 6)
- Submit Button Help (JavaScript / DHTML / AJAX)
- Prevent subsequent submits after initial submit (HTML and CSS)
- Disable the Shut Down Button on the Welcome Screen (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: chat system
- Next Thread: loopy doopy
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner beneath binary broadband broken button cakephp checkbox class cms code compression countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link links login mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion remote script search searchbox server session sessions sms smtp source space sql strip_tags survey syntax system table tutorial update upload url validator variable video virus votedown web website window.onbeforeunload=closeme; youtube





