一 代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>验证电子邮箱格式</title>
</head>
<body>
<form name="form" method="post" action="#">
<label>请输入邮箱:</label>
<input type="text" name="mail" id="mail" value="<?php echo $_POST['mail'];?>">
<input type="submit" name="sub