Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Sep 5th, 2010 | Syntax: PHP | Size: 0.56 KB | Hits: 19 | Expires: Never
Copy text to clipboard
  1. <html>
  2. <head>
  3. <title>Test</title>
  4. </head>
  5. <body style="background-color:#1c1c1c;margin:0">
  6. <div style="border-top:1px solid #404040">
  7. <div style="color:#fff;;padding:10px">
  8. <h1>Hello World!</h1>
  9. </div>
  10. </div>
  11. <script type="text/php">
  12. if ($_POST['name']) {
  13.         $name = $_POST['name'];
  14.         echo "<p>Your name is $name.</p>";
  15. } else {
  16.         echo '<form action="index.php" method="post">
  17.                 What is your name?
  18.                 <p><input type="text" id="name" name="name" /></p>
  19.                 <input type="submit" id="submit" name="submit" value="Submit" />
  20.         </form>';
  21. }
  22. </script>
  23. </body>
  24. </html>