Hello Stephen, At first glance, in your message I noticed that the second backslash ( \"checkbox"\ ) is after the double quote. The backslash should be before the double quote for proper escaping in JavaScript. That could be your problem possibly. -----Original Message----- From: Stephen [mailto:therealzerocool@xxxxxxxxx] Sent: Thursday, July 26, 2007 8:24 PM To: php-windows@xxxxxxxxxxxxx Subject: Error: illegal character I need help I am trying to get a sample code that I got from the internet to work on my website. Every time that I check the error logs I get tis message: Error: illegal character Source File: http://192.168.0.102/wle_form.php?run=& Line: 969, Column: 55 Source Code: if(document.AuthChangesForm.elements[i].type == \"checkbox"\ && document.AuthChangesForm.elements[i].name == SwitchName ) Can anyone help me with this. I hope it is the only thing that is stopping this program from running. -Stephen- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php