FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


form check





moeslimoen
I've tried to check a form
manav
cn u pls write the coments in english...

it would make it a lot easier for me to understand ur code and genuinly help u buddy....
SlovenianBoy
For checking fields:

Code:

<script type='text/javascript'>
function isEmpty(elem, helperMsg){
        if(elem.value.length == 0){
                alert(helperMsg);
                elem.focus();
                return true;
        }
        return false;
}
</script>
<form>
Required Field: <input type='text' id='req1'/>
<input type='button'
        onclick="isEmpty(document.getElementById('req1'), 'Please Enter a Value')"
        value='Check Field' />
</form>
Related topics
"Firefox Day" to get immortalized in Firefox 2!
Javascript password checker
Can you make me a form?
check box validation
Form Generator
here is a neat little form checker i made
Looking for easy FormMail Script
Form validation
Check strange file(or your computer) for viruses on-line
Fantastic form creator program
Check out my Interactive CV
$_POST['name of form????']?
Please Help? CGI form mail on my site... only 2 questions!
Enter your webpage in this form to KNOW your keywords
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.