[請益] 變數沒有辦法傳
不好意思剛學PHP@@,所以可能問的問題對各位而言很簡單 @@
兩個檔案,分別為index.html及 abc.php
如下所示
index.html 為 :
<html>
<title>PHP says hello</title>
<body>
<form method="post" action="abc.php">
Your Name: <input type="text" name="user">
<br/>
<input type="submit" value="say hello">
</form>
</body>
</html>
abc.php 為 :
<html>
<title>PHP hello</title>
<head></head>
<body>
<?php
print "hello, ";
print $_post['user'];
print "!";
?>
</body>
</html>
理想結果應該是 假設在index.html打入abc
那應該會在abc.php網頁出現 hello, abc!
實際結果為
hello, !
也就是我的變數的資料好像沒有傳到abc.php裡。
請各位版大 幫幫忙 謝謝囉
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.79.88
→
03/07 12:42, , 1F
03/07 12:42, 1F
推
03/07 15:44, , 2F
03/07 15:44, 2F
→
03/07 16:51, , 3F
03/07 16:51, 3F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章