fareedreg Posted January 26, 2010 Share Posted January 26, 2010 how to make it numeric too. function validate_required(fldb) { var error=""; if (fldb.value==null||fldb.value==""||) { error="Please enter deposite amount"; fldb.focus(); } else { } return error; } Link to comment https://forums.phpfreaks.com/topic/189872-how-to-make-numeric-field-validation-in-php-and-javascript/ Share on other sites More sharing options...
akitchin Posted January 26, 2010 Share Posted January 26, 2010 where's the php portion of this? as for the javascript method, google answered this for me in about 4 seconds: http://javascript.about.com/library/blnum.htm a search engine is a wonderful thing. Link to comment https://forums.phpfreaks.com/topic/189872-how-to-make-numeric-field-validation-in-php-and-javascript/#findComment-1001914 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.