<?php
<?php
require"ljk.php";
$id=$_POST['id'];
$id=$_REQUEST['id'];
$sql="select name,sex,card,tel,home,sp from user where id='{$id}'";
$row = mysql_query($sql);;
?>
</head>
<body>
<div class="contact" >
<form name="form1" method="post" action="">
<ul>
<li><div class="zt">
<h1>修改表</h1></div>
</li>
<li>
<label>查找用户的id:</label>
<input type="text" name="id" placeholder="请输入你要修改的id查询该用户" required id="id"/>
<input name="cz" type="submit" id="cx" value="查找"/>
</li>
<li>
<label>姓名: </label>
<input type="text" name="name" placeholder="" id="name"/ value="<?php echo $row['name'];?>">
</li>
<li>
<label>性别:</label>
<select name="sex" id="sex">
<option>男</option>
<option>女</option>
</select> </li>
<li>
<label>身份证号:</label>
<input name="card" type="text" id="card" placeholder="" maxlength="18"/ value="<?php echo $row['card'];?>">
</li>
<li>
<label>联系方式:</label>
<input name="tel" type="text" id="tel" placeholder="" maxlength="11"/ value="<?php echo $row['tel'];?>">
</li>
<li>
<label>家庭住址:</label>
<input type="text" name="home" placeholder="" id="home"/ value="<?php echo $row['home'];?>">
</li>
<li>
<label>有何特长:</label>
<input type="text" name="sp" placeholder="" id="sp"/ value="<?php echo $row['sp'];?>">
</li>
</ul>
<b class="btn"><input name="xg" type="submit" id="xg" value="保存修改"/>
<input type="reset" value="取消修改"/></b>
</form>
</div>