Popup Alert If Empty

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
junaidsoomro
Forum Newbie
Posts: 2
Joined: Sat Apr 05, 2014 5:33 am

Popup Alert If Empty

Post by junaidsoomro »

I want Alert if someone enter without numerical in TEXTBox.
How its possible in PHP code?
thanks


Regards
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Popup Alert If Empty

Post 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.
Post Reply