Page 1 of 1

Popup Alert If Empty

Posted: Sun May 11, 2014 3:33 am
by junaidsoomro
I want Alert if someone enter without numerical in TEXTBox.
How its possible in PHP code?
thanks


Regards

Re: Popup Alert If Empty

Posted: Sun May 11, 2014 3:45 am
by requinix
PHP can't do it alone. You need Javascript somewhere.

Search around for how to do form validation in Javascript. You'll probably end up writing code for the form's onsubmit that checks the form fields and takes whatever action it wants (such as an alert message) if there's a problem.