I am very very new to javascript, i just learn from the tutorial and try to add validation to it, but it can't run in IE and firefox, but running in safari.
here is the index.php
...
addcomment.php
...
<<< the code is deleted by erica>>>
Last edited by hiuyu; 07-03-2010 at 08:48 AM..
Reason: finished the study!! thank you
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
What errors are you seeing? How is it "not working"? Does your query call return true or false, and if it returns false, are you handling that? (the answer is no on that one) And are you also aware that you can't rely on client validation alone? You also need server-side validation; anyone can send a post request to your server script and completely bypass your validation.