20180614--Head First PHP&MySQL 学习笔记(一)为静态页面赋予生命

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/dutianang/article/details/80697245

什么是php?

PHP(Persnonal Home Pages, Hypertext Processor)

简介:

HTML静态而乏味
利用纯HTML Web页面,服务器只能提供静态HTML,而静态HTML只能显示内容
PHP为Web页面赋予生命
通过引入PHP,Web服务器能够动态生成HTML页面。

<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  <p>Share your story of alien abduction:</p>  
  <form method="post" action="report.php">  
    <label for="firstname">First name:</label>  
    <input type="text" id="firstname" name="firstname" /><br />  
    <label for="lastname">Last name:</label>  
    <input type="text" id="lastname" name="lastname" /><br />  
    <label for="email">What is your email address?</label>  
    <input type="text" id="email" name="email" /><br />  
    <label for="whenithappened">When did it happen?</label>  
    <input type="text" id="whenithappened" name="whenithappened" /><br />  
    <label for="howlong">How long were you gone?</label>  
    <input type="text" id="howlong" name="howlong" /><br />  
    <label for="howmany">How many did you see?</label>  
    <input type="text" id="howmany" name="howmany" /><br />  
    <label for="aliendescription">Describe them:</label>  
    <input type="text" id="aliendescription" name="aliendescription" size="32" /><br />  
    <label for="whattheydid">What did they do to you?</label>  
    <input type="text" id="whattheydid" name="whattheydid" size="32" /><br />  
    <label for="fangspotted">Have you seen my dog Fang?</label>  
    Yes <input id="fangspotted" name="fangspotted" type="radio" value="yes" />  
    No <input id="fangspotted" name="fangspotted" type="radio" value="no" /><br />  
    <img src="fang.jpg" width="100" height="175"  
      alt="My abducted dog Fang." /><br />  
    <label for="other">Anything else you want to add?</label>  
    <textarea id="other" name="other"></textarea><br />  
    <input type="submit" value="Report Abduction" name="submit" />  
  </form>  
 </body>
</html>



阅读更多

没有更多推荐了,返回首页