hi to all.
i am trying to do form validation through javascript and captcha using php.
when i try to alert for invalid security code, if thecode is correct also, it is giving alert boxes of invalid code and when i click ok button, page is redirecting to the next page.
my form code is
<input type="submit" name="submit" value="submit" onclick="chk();">
chk is a javascript function