php提交表单时判断 if($_POST[submit])与 if(isset($_POST[submit])) 的区别
应该这样用if(isset($_POST['submit'])) {
}
提交表单时 if($_POST[submit])与 if(isset($_POST[submit])) 的区别
第一种方法会出现一个warning,第二种相对更严谨。
还有就是POST的键名最好加上单引号,这样效率稍微高点(大概3-4倍)。
恩 差不多那个意思,如果设置了这个变量则返回true
PHP中if(isset($_POST['Submit']))是什么意思
isset -- 检测变量是否设置
判断post过来的数据是否被提交过来
复制代码 代码如下:
if(isset($_POST["submit"]){
echo "提交过来了";
}else
{
echo "submit is no come~";
}

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool