Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<meta http-equiv= "Content-type" content= "text/html"; charset= "Utf-8" >
<title> SMS System </title>
<script language= "JavaScript" >
function FormCheck () {
if (document.form.zhanghao.value== "") {
Alert ("Number cannot be empty!") ");
This.form1.zhanghao.focus ();
return false;
}else if (document.form.email.value== "") {
Alert ("Content cannot be empty!") ")
This.form1.eamil.focus ();
return false;
}else Form1.submit ();
}
</script>
<body>
<form name= "form" method= "POST" action= "sendmail.php" class= "FORMG" >
<table>
<tr>
<th colspan= "8" class= "Ctitle" > Send SMS </th>
</tr>
<body>
<tr bgcolor= "#eeeeee" >
<TD align= "center" > Number:</td>
<td><textarea name= "Content" cols= "rows=" id= "Zhanghao" class= "FORMH" ></textarea></td >
</tr>
<tr bgcolor= "#eeeeee" >
<TD align= "center" > Content:</td>
<td><textarea name= "Content" cols= "rows=" id= "email" class= "FORMH" ></textarea></td>
</tr>
<tr bgcolor= "#eeeeee" align= "Center" >
<TD height= "colspan=" 2 ">
<input type= "button" Name= "Submit" value= "Send" class= "button" onclick= "Javascript:formcheck ();" >
<input type= "reset" name= "Submit2" value= "reset" class= "button" >
</td>
</tr>
</body>
</table>
</form>
</body>