I'm trying to alter a script that verifies entries in a Form2Email.
The name of one of the fields is 'captcha-text' which stops the verifying script from working ie...
if (document.message.captcha-text.value == "")
If I change it to 'captchatext' the verifying script then works fine but the Form2Email script stops working ie...
if (document.message.captchatext.value == "")
It's clearly the hyphen within the field name that's the problem and if I change all references to it in the Form2Email script the script stops working so I've got to make the verifying script accept the name 'captcha-text'.
Anyone any idea how I can make it work?



Reply With Quote

Bookmarks