我正在尝试学习PHP并且我已经看过一些视频和教程,当创建会话变量的值将从输入元素中输入的值中拉出时,输入元素的“id”是重要的,当检查时如果单击提交按钮,输入元素的“名称”重要吗?
原文链接:https://www.f2er.com/php/133317.html<?PHP if (isset($_POST['Register'])) { //Register is the "name" session_start(); $Fname = $_POST['first_name']; //first_name is the "id" ... } ?> <!doctype html> ... <form action="" method="post" name="registerform" id="registerform"> <input name="firstname" type="text" id="first_name"> ... <input name="Register" type="submit" id="register" value="submit">