s*******e 发帖数: 1269 | 1 login.php
login1.php
$db=mysql_connect("localhost","wanghaixin","4278883")or die( "We cannot
connect to databases");
mysql_select_db("example",$db);
$pass= $_POST['pass'];
echo "$pass";
?>
数据pass 怎么传不过来?
多谢指点。
嘿嘿 | m*******e 发帖数: 119 | 2 The problem is your database connection. You use "or die" in your database
connection. Once the connection fails, "We cannot connect to databases" is
displayed ,and the execution of the php file stopped. The form data should be
correctly transferred to the $pass if you remove the "or die" phrase or if you
have a successful database connection.
【在 s*******e 的大作中提到】 : login.php : : login1.php : : $db=mysql_connect("localhost","wanghaixin","4278883")or die( "We cannot : connect to databases");
|
|