Notice: Undefined index: user in C:\xampp\htdocs\PhpProject1\login.php
Notice: Undefined index: password in C:\xampp\htdocs\PhpProject1\login.php
运行此代码时出现此错误
if ( isset($_REQUEST['attempt']) );
{
$link = mysql_connect('localhost', 'root', '') or die('cant connect to db');
mysql_select_db('test_user');
$user = mysql_real_escape_string($_POST['user']);
$password = (mysql_real_escape_string($_POST['password']));