http://localhost/test.php?username=hello&password=hello
这是GET方式,
$username = $_GET["username"];
$password = $_GET["password"];
这是GET方式,
$username = $_GET["username"];
$password = $_GET["password"];
$username,$password
$username,$password---------------------
Do not do this.
$username = $_GET["username"];
$password = $_GET["password"];
比较好。在参数较多的情况下可以起一个提醒的作用,这一点在$_POST上更明显
$a=$_POST['username'];
$a=$_GET['username'];