Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<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 ("the number cannot be blank! ");
This. form1.zhanghao. focus ();
Return false;
} Else if (document. form. email. value = ""){
Alert ("content cannot be blank! ")
This. form1.eamil. focus ();
Return false;
} Else form1.submit ();
}
</Script>
</Head>
<Body>
<Form name = "form" method = "post" action = "sendmail. php" class = "formg">
<Table>
<H2>
<Tr>
<Th colspan = "8" class = "CTitle"> send SMS </th>
</Tr>
</H2>
<Body>
<Tr bgcolor = "# eeeeee">
<Td align = "center"> No.: </td>
<Td> <textarea name = "content" cols = "80" rows = "15" id = "zhanghao" class = "formh"> </textarea> </td>
</Tr>
<Tr bgcolor = "# eeeeee">
<Td align = "center"> content: </td>
<Td> <textarea name = "content" cols = "80" rows = "15" id = "email" class = "formh"> </textarea> </td>
</Tr>
<Tr bgcolor = "# eeeeee" align = "center">
<Td height = "25" 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>
</Html>