placeholder

 <body>


  <form method="post" action="">
 placeholder
  <input name="email" type="text" placeholder="这里输入文字" size="22" />

  <br>
javascript
  <input name="mail" type="text" value="请输入内容" onfocus="javascript:if(this.value=='请输入内容')this.value='';">    

  <input type="submit">
  </form>

<hr>
<?php
var_dump($_POST);
?>
 </body>

 

posted @ 2017-09-23 14:37  sky20080101  阅读(124)  评论(0编辑  收藏  举报