麻辣家族討論版版's Archiver

微笑 發表於 2014-3-11 15:40

post a網頁傳參數到b網頁問題

目前學php適用post將a網頁post參數傳到b網頁,讓b網頁出現XXX您好,但問題來了,我用工具NuSphere PhpED寫完網頁內容,檔案也跑完了,a網頁內容輸入完後b網頁只會顯示您好,到底是出了什麼問題呢?
有高手可以幫忙一下嗎???下面是程式碼內容
a網頁
<html>
<head>
<titile>指令按鈕使用範例</title>
</bead>
<body>
<center>
<font size = coclor = blue>指令按鈕的使用範例</font>
</center>
<hr>
<p></p>

<form action="response.php" method=post name=forml>
<p>請輸入姓名:<input name=tbxname ></p>
<input name=submit1 type=submit value="送出">
<input name=reset1 type=reset value="清除">
</form>

</body>
</html>

b網頁
<html>
<head>
<title>從用戶端傳送資料至伺服器</title>
</head>
<body>
<center>
<font size = 5 color = blue>回應表單動作的php檔</font>
</center>
<hr>
<p></p>
<center>
<h2>
<font color = red>
<? echo $_POST["tbxname"] ?>
</font>
您好
</h2>
</center>
</body>
</html>

頁: [1]

麻辣家族討論版版為 麻辣學園 網站成員  由 昱得資訊工作室 © Since 1993 所提供