View Single Post
Old 05-16-2012, 07:58 PM   PM User | #7
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,036
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Quote:
Originally Posted by damnamazing View Post
Oh darn. The cookies work great but it messed up my form validation! The form validation was working great before the cookies, now it straight bypasses the validation and lets you submit without alerts.
Why should the cookie script do that? I would look for an error somewhere else. You will only set the cookie with the form values after the validation process has completed.

Code:
onsubmit="return validateForm(); if (this.checker.checked) toMem(this)">
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote