Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend:
Making Friends of PHP and Javascript
Aug 06, 2003 @ 12:25:01

If you've ever struggled with HTML forms and getting them to work all the time with your PHP scripts, you know that sometimes, it just takes a little something extra. Zend knows that, and that's why their new tutorial, Advanced Form Processing with PHP and Javascript, can help.

When building a web site, sooner or later you will need a form. Forms are the best way of gathering data from visitors. Your forms can be as small as a login form, or as large as a membership subscription form asking for lots of input. Obviously, the bigger the form, the more information there is to process, and the greater the challenge. [...] Utilizing Javascript, you can limit and check form data while it's still on the client side.

They give you several examples and tips/tricks to getting your forms to do most of the hard work for you (using things like regular expressions and Javascript validation). Using this approach can help you keep your server traffic to a minimum, and reduce the time people have to spend on your site to get what they want.

tagged:

Link:


Trending Topics: