我在iis 下运行的提交表单的程序是可以运行的 可是在 apache下 却不行呢? 源码 <html> <head> <title> 通讯录 </title> </head> <body color=00ffff> <CENTER><h1><font COLOR=blue>我的通讯录</font></h1></CENTER> <FORM METHOD=GET ACTION="<? echo $PATH_INFO ?>" > <? //连接服务器 $connect = @mysql_connect("localhost","root","jiangtaoaimm") or die('Unable to connect the server!'); //选择数据库 mysql_select_db('friend') or die('Unable to select the database'); //应用showtable.inc require( "showtable.inc");
switch ( $_GET[submit] ) { case "添加新朋友": include("addfriend.inc"); addform(); break;
case "添加" : include("addfriend.inc"); addfriend(); showtable(); break;
case "从列表中删除": include("delete.inc"); delete( $selected); showtable(); break;
case "修改通讯录": include("modify.inc"); mdfform(); break;
case "修改": include("modify.inc"); global $update; modify( $update ); showtable(); break; default: showtable() ;
}
?> </FORM> </body> </html>
|