求救!
我要实现在网页的表单中输入内容,然后提交,调用php程序,输出输入的内容,如下:
<html>
<head><title>会员申请</title><head>
<body><center>
<H2>会员申请</H2>
<form method="post" action="member.php">
<table border="1" width="550">
<tr>
<td width="200">姓名:</td>
<td width="350"><input type="text" name="name" size="21">
</td>
</tr><tr>
<td width="200">帐号:</td>
<td width="350"><input type="password" name="password" size="21">
</td>
</tr><tr>
<td width="200">性别:</td>
<td width="350">
<input type="radio" name="sgenger" value="男">男
<input type="radio" name="sgenger" value="女">女
</td>
</tr><tr>
<td width="200">出生年月日:</font></td>
<td width="350">公元
<input type="text" name="year" size="10">年
<input type="text" name="month" size="5">月
<input type="text" name="day" size="5">日</td>
</td>
</tr><tr>
<td width="200">地址:</td>
<td width="350"><input name="address" size="44">
</td>
</tr><tr>
<td width="200">电话:</td>
<td width="350"><input type="text" name="phone" size="20">
</td>
</tr>
<tr>
<td width="200">教育程度:</td>
<td width="350">
<select size="1" name="education">
<option selected>高中(含以下)</option>
<option>大专</option>
<option>硕士</option>
<option>博士</option>
</select>
</td>
</tr><tr>
<td width="200">E-mail:</td>
<td width="350"><input name="email" size="34">
</td>
</tr><tr>
<td width="200">兴趣:</td>
<td width="350">
<input type="checkbox" name="hobby[sports] value="运动">运动
<input type="checkbox" name="hobby[sports] value="看书">看书
<input type="checkbox" name="hobby[sports] value="看电影">看电影
<input type="checkbox" name="hobby[sports] value="旅游">旅游
</td>
</tr><tr>
<td width="550" colspan="2">
<p align="center"><input type="submit" value="申请" name="Submit">
<input type="reset" value="重新设置" name="Reset">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
<html>
<body>
<center>
<table border="1" width="550">
<?
echo "<tr><td width=200>姓名</td>";
echo "<td width=350>".$name.</td></tr>";
echo "<tr><td width=200>密码</td>";
echo "<td width=350>".$password.</td></tr>";
echo "<tr><td width=200>性别</td>";
echo "<td width=350>".$sgender.</td></tr>";
echo "<tr><td width=200>出生年月日</td>";
echo "<td width=350>".$year."年".$month."月".$day."日".</td></tr>";
echo "<tr><td width=200>地址</td>";
echo "<td width=350>".$address.</td></tr>";
echo "<tr><td width=200>电话</td>";
echo "<td width=350>".$phone.</td></tr>";
echo "<tr><td width=200>教育程度</td>";
echo "<td width=350>".$education.</td></tr>";
echo "<tr><td width=200>E-mail</td>";
echo "<td width=350>".$.<email/td></tr>";
echo "<tr><td width=200>兴趣</td>";
echo "<td width=350>";
while($val=current($hobby))
{
echo $val." ";
next($hobby);
}
echo "</td></tr>"
?>
</center>
</body>
</html>
但我填好内容后提交后提示说php程序的第七行出错,这是怎么一会事啊,还要修改php.ini的
内容吗?
救命啊!!!