這是我的html表單,在這個下面我包含了我的php文本。html form-php問題
但我沒有得到正確的輸出,我不是沒有問題在哪裏?
我還包括輸出,請建議我什麼shuld我做?
<html>
<head>
<title>
Entering data into text
</title>
</head>
<body>
<h1>
Entering data into text
</h1>
<form action="text.php" method="post">
What is ur name ?
<input type="text" name="data" />
<input type="submit" value="send" />
</form>
</body>
</html>
這是我的PHP文字:
<html>
<head>
<title>
Reading data from textfields
</title>
</head>
<body>
<h1>
reading data from text field
</h1>
Thanks for answering,
<?php echo $_POST["data"];?>
</body>
</html>
輸出:
reading data from text field
Thanks for answering,
問題是,數據發送不包含服務器的響應後 請幫我儘可能快
你能用print'r($ _ REQUEST)'在text.php中打印出來嗎? – amitchd
我是soory,請你多解釋一下 – fariz
我是php新手,請幫助我 – fariz