![]() |
Need numeric validation for a field ina form
:embarassei need to validate the form .. fields should not be empty is justified... but the last field i.e var z should be numeric ..please reply fast
Code:
function validateform() |
Re: Need numeric validation for a field ina form
Your code should be doing fine unless you have some issues with other HTML.
|
Re: Need numeric validation for a field ina form
i need to do numeric validation to last field wher if i enter an alphabet by default 0 is entring into table ...please help me with code
|
Re: Need numeric validation for a field ina form
Your issue may be with PHP Validation and not the code you have just posted. Try to share relevant code so that we can help
|
Re: Need numeric validation for a field ina form
here isthe complete code ...please help me in validating rollnum field
PHP Code:
|
Re: Need numeric validation for a field ina form
Show some effort of posting the problematic code and and not the complete code. No one would debug your complete issues.
|
Re: Need numeric validation for a field ina form
Maybe you can share relevant code so I can reply easily to your question? Are you sure it is about the code?
|
Re: Need numeric validation for a field ina form
Yes, i agree with you mas...when we knows the complete code then only can help in complete way.
|
Re: Need numeric validation for a field ina form
i dont get your issue very well
but from what i got you need to make sure that the last field, that is 'rollnumid' is always a numeric value JS level check use this function to check whether it is a number <script> Code:
function isNumeric(n){simply use the is_numeric method PHP Code:
|
| All times are GMT +5.5. The time now is 03:32. |