<form action="" method="post">action=空 跟'PHP_SELF'的区别

WBOY
Release: 2016-06-13 12:12:16
Original
1137 people have browsed it
action=空 和'PHP_SELF'的区别;
" method="post">

和 



有区别吗? 都是提交到本页,那为什么要那么麻烦写中间的php呢;

------解决思路----------------------
没有区别,不过低版本的浏览器是不支持 action="" 的,所以教程上都是 action=""
不过这些浏览器得到博物馆里去找了
------解决思路----------------------
没什么区别。一样都是提交到当前页面。
------解决思路----------------------
没什么区别吧,估计就是浏览器支持不支持空值的问题~
------解决思路----------------------
减少用$_SERVER['PHP_SELF'];    这个存在xss风险
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template