<!--
function validate(input) {
if (input.name.value=="") {
alert("Please complete the name field.");
return false;
}
if (input.email.value=="") {
alert("Please complete the email field.");
return false;
}
if (input.phone.value=="") {
alert("Please complete the phone field.");
return false;
}
}
//-->
</script>
i put this file top of my form to check if my form already fill out or not...but i don't know how to make it find email and phone is not real valid..
i mean..if people put "abcdefghij" in email field it will not process..it will say.."please put real email" that contain abc@abc.com
and if people put "abcdefghij" in email field it will not process..it will say.."please put real phone" that contain 123456789(number only)
please help me..


