I didnt really want to send all info back, validate it with PHP, and then reload a potential page with all error highlighted. Rather, as I am doing now, I'd rather find each error as they "occurr" so to say. So what I was looking for was a way to call a PHP script back on the server from the JavaScript, which waited for a message and then deal with it. Something like;
<SCRIPT LANGUAGE="JavaScript">
function validation() {
if(phpscript(username) == false) {
alert("Your username exists");
}
and where phpscript.php would then do the checking with a MySQL db etc.
If this is not possible, I'll have to do the checking via a php script which is called from the form action.
Cheers for your time
Thomas