您的位置:首页 > 其它

创建一个简单的输入表单

2015-06-20 11:17 204 查看
<html>

<head>

<title>A simple HTML form</title>

</head>

<body>

<form action="send_simpleform.php" method="POST">

<p><strong>Name:</strong><br/>

<input type="text" name="user"></p>

<p><strong>Message:</strong><br/>

<textarea name="message" rows="5" cols="40"/></textarea></p>

<p><input type="submit" value="send"/></p>

</form>

</body>
</html>

以上是simpleform.html的内容

<?php

echo "<p>Welcome <b>".$_POST["user"]."</b>!</p>";

echo "<p>Your message is:<br/><b>".$_POST["message"]."</b></p>";

?>

以上是send_simpleform的内容
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  lamp