Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Formular PHP</title>
- </head>
- <body>
- <table width="100%" height="100%" border=5 bordercolor="#125798" cellspacing=5 cellpadding=5>
- <tr height="10%">
- <td colspan=2>Afisarea rezultatelor </td>
- </tr>
- <tr>
- <td width="40%">
- <h1>Formular</h1>
- <form action="<?php echo($_SERVER["PHP_SELF"]);?>" methed="post">
- Nume<input type="text" name="nume" value=" "><br>
- E-mail<input type="text" name="email" value=" "><br>
- <input type="submit" name="trimite" value="Trimite">
- </form>
- </td>
- <td>
- <?php
- if($_SERVER["REQUEST_METHOD"]=="Post")
- {$a=$_POST["nume"];
- $b=$_POST["email"];
- echo "Ai introdus
- </td>
- <tr>
- <tr height="10%">
- <td colspan=2>N,P</td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement