I have a few suggestions for the PHP form validation tutorial Till wrote a while back, and Allen just recently discovered for himself when having a problem with form validation.
I checked out the tutorial for myself to see what I might learn for myself.
I came across two things I would like to suggest for the tutorial.
1) Check the character set for the tutorial (and this may be true throughout the site, but I only noticed it on this tutorial, so far). For some of us, we see strange characters rather than the code that should be displayed.
2) Can you please add some information about validating email addresses? I would be willing to bet that the majority of forms request the user to enter an email address, and it would be nice to see some information on how to validate those.
I found the information I was looking for in a tutorial on another site, but it honestly was not as easy to find as you might expect. It would be great to find that information here on HTMLCenter.
BTW - For those interested, this is a snippet of the code I found in
this tutorial:
PHP Code:
if(!ereg("[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]", $email_input))