WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Chetankumar Akarte
Date : Nov 23rd 2006
Grade : 5 of 5 (graded 2 times)
Viewed : 10750
File : 4538.zip
Images : Image 1 , Image 2
Search : More code by Chetankumar Akarte
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
Like this code?
Show the author your appreciation.
 

Check out the attached images.

<html>
<head>
<script>
var second2;
function fifteenth(sixteenth){
    second2=sixteenth;
    if (document.all||document.getElementById){
        for (seventeenth=0 ; seventeenth < second2.form.length;seventeenth++){
            var eighteenth=second2.form.elements[seventeenth];
            if(eighteenth.type.toLowerCase()=="submit") {
                eighteenth.disabled=!second2.checked;
            }
        }
    }
}

function first2(sixteenth){
    if(!document.all&&!document.getElementById){
        if (window.second2&&second2.checked) {
            return true;
        }else{
            alert("Please accept terms to submit form");
            return false;
        }
    }
}
</script>

<title></title>
</head>
<body>


<form name="agrform" onSubmit="return first2(this)">
<div align="center">
<p>&nbsp;</p>
<p>
    <font face="Verdana, Arial, Helvetica, sans-serif"><strong>Click to Submit form</strong></font>
    <BR><BR>
    <input name="agrcheck" type="checkbox" onClick="fifteenth(this)">
    <b><font color="#FF0000">I agree to these terms</font></b>
    <BR><BR>
    <input type="Submit" value="Submit" disabled>
</p>
</div>
</form>

<script>
document.forms.agrform.agrcheck.checked=false;
</script>
</body>
</html>



Autofill HTML forms with data lock.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Form Processing : with alert Highlight field name which is not filled by user
Categories : Java Script, Form Processing, Data Validation, Beginner Guides, Web Design
Show or Hide your Content using Javascript
Categories : Java Script, HTML, CSS, Beginner Guides
showing Help (assistance) to the user while filling html forms.
Categories : HTML, Java Script, Form Processing
PHP and javascript mouseover, mouseout, and mousedown events
Categories : PHP, Java Script, Form Processing, Beginner Guides
Changing the Style of form objects using the JavaScript OnClick method.
Categories : Java Script, Form Processing, Beginner Guides, CSS
JavaScript dropdown list menu to switch any page.
Categories : Java Script, Beginner Guides, Form Processing
Show hide table rows to make dynamic forms
Categories : Beginner Guides, Java Script, Form Processing, HTTP
Table editable dynamic form with edit + selection (select / option) + checkbox.
Categories : Java Script, DHTML, User Interface, CSS, HTML
Validating a URL with JavaScript RegExp
Categories : Java Script, Data Validation, Beginner Guides
Javascript URL and Email Validation
Categories : Java Script, Data Validation, Form Processing, Email, URLs
Newbie Notes #10 - Generating drop downs
Categories : PHP, MySQL, HTML, Beginner Guides, Databases
<FORM> causing an extra line in HTML output on IE
Categories : Beginner Guides, HTML, CSS
How to keep your tables width stable even if you have long strings inside.
Categories : CSS, Web Browsers, HTML, Beginner Guides
Mordern Peroidic Table - Science
Categories : Java Script, HTML, Charts and Graphs