How can I check a value entered in a field on my form is a number?
Here's an example:
<?php
$formvalue = "57a";
if(is_numeric($formvalue)) { echo "Is a number"; } else { echo "Not a number"; }
?>
This prints 'Not a number' in this instance.
Comment on this Question and Answer >>>
ASK A QUESTION
More forms PHP Questions
how to display like table from database records?1.want to know simple logic and procedure of FORM VALIDATION? 2.How to check Login and password in PHP?
i just wanted to put a textbox beside the query of the evaluation form. how can i do that? ========================== here is my php form index.php PERFORMANCE APPRAISAL INSTRUMENT var Event = { add: function(obj,type,fn) {
if i send values to database ,but in that table zeros is added ,how can i rectify the error
How do I save text inside a textarea so that it can be updated later?
