文章详情页
html表单数据无法提交到php
问题描述
源码如下,在html界面提交数据,php没有显示
<html> <head> </head> <body><?PHP $name=$error=''; if (empty($_POST["name"])){$error='empty'; }else{$name=$_POST["name"];$error=' no empty'; }?> <from action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">名字<input type="text" name="name" value=""><br><input type="submit" name="提交" value="提交"><input type="text" name="display" value="<?php echo $error; ?>"><?php echo $_POST['name']?> </from> </body></html>
问题解答
回答1:不是from,form才对
标签:
HTML
相关文章:
1. 提示我模板文件不存在: tp5 application index view body.html2. HTML5怎么访问本地文件?3. javascript - 这种上传图片预览怎么做?4. javascript - input输入框触发change事件后,外部元素会被选中5. javascript - js判断一个数组是否重复6. javascript - vue2.0中router.repalce跟router.push有什么区别,二者的应用场景是会有怎样的区别?7. python相关问题求解决,有偿8. javascript - 把字符串日期转换成一般时间格式后,发现小于10的数字不会自动添加0在前面,如下9. javascript - prismplayer播放器全屏问题10. javascript - 在sublime中如何给.vue文件注释?
排行榜