PHP学习编写的,点击html提交后,显示的还是$..... php没有获取数据,请问是什么原因
<body><divclass="bord"><p>Pleasecompletethisformtosubmityourfeedback:</p><formaction=...
<body>
<div class="bord"><p>Please complete this form to submit your feedback:</p>
<form action="handle_form.php" method="post">
<php?
$title = $_POST['title'];
$name = $_POST['name'];
$response = $_POST['response'];
$comments = $_POST['comments'];
print "<p>Thank you, $title $name,for your comments.</p>
<p>You stated that you found this example to be $response and added:<br/>$comments</p>";
?>
<p>Name:<select name="title">
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>
<option value="Ms.">Ms.</option></select>
<input type="text" name="name" size="20" /></p>
<p>Email Address:<input type="text" name="email" size="20" /></p>
<p>Response:This is...
<input type="radio" name="response" value="excellent" />excellent
<input type="radio" name="response" value="okay" />okay
<input type="radio" name="response" value="boriing" />boring</p>
<p>Comments:<textarea name="comments" rows="3" cols="30"></textarea></p>
<input type="submit" name="submit" value="Send My Feedback" />
</form></div> 展开
<div class="bord"><p>Please complete this form to submit your feedback:</p>
<form action="handle_form.php" method="post">
<php?
$title = $_POST['title'];
$name = $_POST['name'];
$response = $_POST['response'];
$comments = $_POST['comments'];
print "<p>Thank you, $title $name,for your comments.</p>
<p>You stated that you found this example to be $response and added:<br/>$comments</p>";
?>
<p>Name:<select name="title">
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>
<option value="Ms.">Ms.</option></select>
<input type="text" name="name" size="20" /></p>
<p>Email Address:<input type="text" name="email" size="20" /></p>
<p>Response:This is...
<input type="radio" name="response" value="excellent" />excellent
<input type="radio" name="response" value="okay" />okay
<input type="radio" name="response" value="boriing" />boring</p>
<p>Comments:<textarea name="comments" rows="3" cols="30"></textarea></p>
<input type="submit" name="submit" value="Send My Feedback" />
</form></div> 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询