Jump to content

validate name


bal bal

Recommended Posts

hi

here is my code for name field which is a text box. it is working if I put any digit or if the field is empty but when I put the symbols like '%$%^&*!' it still takes the value not showing any error.

 

if ((is_numeric($name))||(empty($name)))

        {

        echo 'please enter your name<br>';

        return;

        }

 

can anyone please help me...

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/151096-validate-name/
Share on other sites

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.