作者bitchdog (上吧杰尼龟)
看板PHP
标题[请益] 我是新手遇到难题
时间Thu Jun 19 20:31:51 2008
<html>
<head> <title></title> </head>
<body>
<form action="Ch9-3-2.php" method="post">
<?
$school=$_POST["school"];
switch ($school) {
case "teacher":
学号:<input type="t1" name="User" size="20"><br> <br>
姓名 :<input type="t2" name="Pass" size="20"><br> <br>
资料库 :<input type="t3" name="a" size="20"><br> <br>
系统分析:<input type="t4" name="b" size="20"><br> <br>
LINUX :<input type="t5" name="c" size="20"><br> <br>
PHP : <input type="t6" name="d" size="20"><br><br>
<input type ="submit" value="老师登记">
break;
case "student":
学号:<input type="t1" name="User" size="20"><br> <br>
<input type ="submit" value="学生登入">
break;
}
?>
</form>
</body>
</html>
这是我的程式码
跑不出来
我不懂错在哪
有人可以教一下吗
--
老爹:"樱木 你的优势是什麽?"
樱木:"帅气的灌篮 脸蛋 全身上下都赢他"
老爹:"是你的速度和灵活度"
http://www.wretch.cc/album/ashin65
我的拍卖
http://class.ruten.com.tw/user/index00.php?s=ashin65
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 192.83.195.222
1F:→ starjou:html & php code 没分开 06/19 20:47
2F:→ bitchdog:那是要分成两张吗 06/19 21:19
3F:推 ybite:你这个code要读$_POST,那你应该要用<form>来跑进去啊 06/19 21:21
4F:→ ybite:(如果你想用xx.php?school=teacher的话要读$_GET['school']) 06/19 21:22
5F:→ ybite:啊等等,我发现问题不在这里 囧 06/19 21:23
6F:→ bitchdog:我还有其他张,只是其他张都没问题,只有这张怪怪的 06/19 21:25
7F:推 nigerc :PHP的开头是<?PHP 结尾是 ?> 你好像少了 07/10 12:36