call javascript from PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajeshpv
Forum Newbie
Posts: 2
Joined: Thu Apr 30, 2009 5:39 am

call javascript from PHP

Post by rajeshpv »

Hi
i have designed a data entry form using PHP. Before submitting the form ,i need to validate form fields . how to call java script function for validation, please reply
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: call javascript from PHP

Post by requinix »

Don't rely on JavaScript to validate data.

If you want to use it to supplement some PHP validation then fine. Learn JavaScript.
Post Reply