check string


Check value entered by user is string

Check Value Entered By User is String

In the given script. Create a HTML Form with method “post”. Create a text box with name “n”.
Get the value entered by user through text box .
Now check if user has clicked on submit button, and value entered by user is not blank, then check given values is not a number, it means value is string so display the value with a welcome message.
otherwise show an error message like “Name must be alphanumeric”.

PHP Script