文章详情页
html表单数据无法提交到php
浏览:135日期:2024-05-18 15:20:18
问题描述
源码如下,在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. java - Activity 进入后台再次传值?2. 前端 - flex布局采用space-around这种方法,但是最后一行如何让他左对齐?3. 前端 - 提问关于background-image不显示的问题4. chrome - linux系统下如何通过java获取客户端ip和mac地址?5. javascript - sublime已经安装了babel插件和sublimelinter-jshint为什么还是显示es6语法错误?6. angular.js - ng-include 会缓存html吗?7. css - 手机app中rem的基准值计算错误8. 前端 - 在webstrom上pull代码时出现错误?9. 小白问题getDay()10. java - git项目迁移到SVN怎么实现的?哪位大神指点指点
排行榜

网公网安备