$ _POST变量有问题 [英] Problem with $_POST variable
问题描述
我正在学习PHP并准备了一个简单的登录表单。 validate.php验证确认并且行为不正常。所以,我做了var_dump
$ _POST变量,它是'NULL。我在这里错过了关于
配置或代码的任何内容吗? validate.php的代码如下:
<?php
var_dump($ _ POST);
$ user = $ _ POST [''login''];
$ password = $ _ POST [''password''];
//。 ......剩下的验证......
?>
任何形式的帮助都会非常有益。
Hi,
I''m learning PHP and prepared a simple login form. validate.php does
the validation and it was behaving erratically. So, I did var_dump of
$_POST variable and it''s NULL. Did I miss anything here regarding the
configuration or code? Code for validate.php is given below.
<?php
var_dump($_POST);
$user=$_POST[''login''];
$password=$_POST[''password''];
// .... Rest of the validation ...
?>
Any kind of help would be highly beneficial.
推荐答案
_POST变量,它是NULL。我在这里错过了关于
配置或代码的任何内容吗? validate.php的代码如下:
<?php
var_dump(
_POST variable and it''s NULL. Did I miss anything here regarding the
configuration or code? Code for validate.php is given below.
<?php
var_dump(
_POST);
_POST);
user =
这篇关于$ _POST变量有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!