Jump to content

how to make numeric field validation in php and javascript


fareedreg

Recommended Posts

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;

}             

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.