标签:welcome form html body meta server add com orm
<html>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
</body>
</html>
后记:
如果php代码和html需要在同一个页面上 ,文件名后缀要为php
标签:welcome form html body meta server add com orm
原文地址:https://www.cnblogs.com/kaibindirver/p/10298009.html