笨笨问题....按键交互..
我的1.php内容如下,如果单独用//localhost/1.php是可以运行的
只是列出一个表,我想用交互方式:按一个按扭 然后显示这个表,于是做了t1.php
想用T1调用1.hph但是没掉出来呀...
// 1.php
<html>
<head>
<title> 交互测试页 </title>
</head>
<body>
<?php
$link = mysql_pconnect("localhost", "root", "0000")
or die("Could not connect: " . mysql_error());
mysql_select_db('123') or die ('can not select dtb');
$query='select * from ben';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
echo"<table>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "\t<tr>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
?>
</body>
</html>
//t1.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>交互测试页</title>
</head>
<body>
<form method="POST" action=\"1.php">
<p><input type="button" value="按钮" name="B3"></p>
</form>
</body>
</html>
帮帮忙哦~~