05-16-2008, 11:05 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 80
Thanks: 16
|
JS Effect on error with PHP
HI all,
I am working on a form that I would like to be able to show errors on. Say for example they don't fill in the correct answer in one Input... when they click Submit, I run PHP to get $_Post and then if there is an error I catch it and tell them. Right now I tell them at the top of the page, however, I would like to highlight the inputbox or even the div where the error occered. In PHP do I catch all the problems and store them in vars then display them in a form rewritten? Can I use JS such as the Prototype library to SHAKE the incorrect answer area?
Thanks for any advice or help!

|
|
|
|