|
function verifyForm(theForm){
var msg='';
if((theForm.input_username.value=='blank')||(theForm.input_username.value=='')){
msg='Please Type your username'
}else
if((theForm.input_email.value=='blank')||(theForm.input_email.value=='')){
msg='Please Type your Email Address'
}else
if((theForm.input_email.value.indexOf('@')<1)||
(theForm.input_email.value.indexOf('@')>(theForm.input_email.value.length - 5))||
(theForm.input_email.value.indexOf('.')<1)){
msg='Please Type a Valid Email Address'
}else
if((theForm.input_password.value=='blank')||(theForm.input_password.value=='')){
msg='Password'
}else
if((theForm.input_password1.value=='blank')||(theForm.input_password1.value=='')){
msg='Retype Password'
}else
if((theForm.input_password1.value!=theForm.input_password.value)){
msg='Passwords does not match'
}
if(msg!=''){
alert(msg);
return false
}
}
Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) |