john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

html note self submit php

<html>
   <body>
      <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
         <textarea name="html"></textarea><br />
         <input type="submit" /><br />
      </form>
      Preview:<br />
      <?php if(isset($_POST['html'])) echo stripslashes($_POST['html']); ?>
   </body>
</html>

  • « html website optimization
  • html form validation »

Published

Feb 6, 2010

Category

web

~25 words

Tags

  • html 23
  • note 1
  • php 82
  • self 5
  • submit 4
  • web 56