文章詳情頁
html表單數(shù)據(jù)無法提交到php
瀏覽:45日期:2024-05-18 15:20:18
問題描述
源碼如下,在html界面提交數(shù)據(jù),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才對
標(biāo)簽:
HTML
相關(guān)文章:
排行榜

熱門標(biāo)簽