点提点 <hr>下边就被覆盖了 怎么改可以输出新的<!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>
<?php
//随即生成四位数function sc(){
$sgesz = array();
$i = 0;
while(count($sgesz)<4){
$ygsz=rand(0,9);
if(!in_array($ygsz,$sgesz)){
$sgesz[$i] = $ygsz;
$i++;
}
}
return implode('',$sgesz);
}
 if(!$_POST['sub']){
$zqsz = sc();
}
else
{
$zqsz = $_POST['zqsz'];
}
?>
<body><form action="1.php" method="post"><table width="303" border="1">
<table width="480" border="1">
  <tr>
    
    <td width="127">输入猜的四位数</td>
    <td width="204"><input type="text" name="cdsz" value="<?php echo $_POST['cdsz'];?>" />
    <input type="hidden" name="zqsz" value="<?php echo $zqsz;?>" /></td>
  </tr>
  <tr>
    <td ><input type="submit" name="sub" id="button" value="提交" /></td>
    <td width="127">生成数字为<?php echo $zqsz;?></td>
    
  </tr>
</table>
</form>
<hr>
<?php 
$cdsz=$_POST['cdsz'];
for($c=0;$c<4;$c++){
if($cdsz[$c]==$zqsz[$c]){
$x++;
}
elseif(1==substr_count($zqsz,$cdsz[$c])){
$y++;

}

}


?>
<table>
 
 </table>
 <table>
<?php while($cdsz!=){?>
  <tr>
    <td width="127"><?php echo $cdsz;?></td>
    <td width="160"><?php if($x==''){$x=0;}if($y==''){$y=0;}echo $x.'A'.$y.'B';?></td>
  </tr> </table></body>
</html>