Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Formular PHP</title>
  4. </head>
  5. <body>
  6. <table width="100%" height="100%" border=5 bordercolor="#125798" cellspacing=5 cellpadding=5>
  7. <tr height="10%">
  8. <td colspan=2>Afisarea rezultatelor </td>
  9. </tr>
  10. <tr>
  11. <td width="40%">
  12. <h1>Formular</h1>
  13. <form action="<?php echo($_SERVER["PHP_SELF"]);?>" method="post">
  14. Nume<input type="text" name="nume" value=" "><br>
  15. E-mail<input type="text" name="email" value=" "><br>
  16. <input type="submit" name="trimite" value="Trimite">
  17. </form>
  18. </td>
  19. <td>
  20. <?php
  21. if($_SERVER["REQUEST_METHOD"]=="POST")
  22. {$a=$_POST["nume"];
  23. $b=$_POST["email"];
  24. echo"Ai introdus urmatoarele informatii:<br>";
  25. echo($a);echo"<br>";
  26. echo($b);echo"<br>";
  27. }
  28. ?>
  29. </td>
  30. <tr>
  31. <tr height="10%">
  32. <td colspan=2>N,P</td>
  33. </tr>
  34. </table>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement