Wow. Thank you so much for getting back to me. Our of interest, do you use your own server on your computer for script testing or do you upload to a webserver? I'd like to have a way to test my scripts without having to upload to the website every few minutes, but was wondering if there's a way to do it without going all out and installing a server on my desktop which is my usual work/play machine.
Re: the script, I was wondering if there is a way to distinguish the different values taken for the Q10 clause:
$message .= "Q10: " . $_POST['clear'] . $_POST['space'] . $_POST['accessibility'] . $_POST['context'] . $_POST['technical'] .
$_POST['sitehelp'] . "\n";
At the moment the e-mail that is generated just has an 'on' with no indication of which one is actually on. In the form, Q10 includes a set of checkboxes, and I'd like to be able to know which one is ticked and which aren't. Do checkboxes take 'selected' and 'unslected' or 'on and 'off' or even '0' and '1' as options?
Also, the mail portion of the script seems to be running even if errors are present. To test this, if you visit
http://www.patwanet.co.uk/questionaire.php
and leave any of the first 7 questions blank, it should come up with an error, which it does, but it also says that answers have been submitted! But I'm not sure how to seperate the two parts of the script.
I'm sorry that this is rather a lot, but it just seemed more prudent rather than starting four different threads on the matter.
Thanks again.
Hussein.
P.S: The link to the questionaire is just so you can see how it works. I don't expect anyone to actually participate, well not unless you want to. Just to be clear I wasn't trying to indirectly market my questionaire.