Thanks Ray - that worked although it still puts a NULL value in the database if it is unticked. Is there a way to get to the next page without putting a value in if the checkbox is unticked?
Also, is there a way to clear the email textbox if there is a value in there initially and then the user changes their mind and unticks the box. At the moment the value stays in there and is still inserted into the database even if they later untick the email check box?
Many thanks