Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {HTML}
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body style="background-color:powderblue;">
- <form action=ind.php method=get>
- <center>
- <h2> <b> My_web_app </b> <br> </h2>
- <h3> Name:<br>
- <input type="text" name="NAME"><br>
- Surname:<br>
- <input type="text" name="SURNAME"><br>
- Age:<br>
- <input type="text" name="AGE"><br>
- Telephone:<br>
- <input type="text" name="TELEPHONE"><br>
- Address:<br>
- <input type="text" name="ADDRESS"><br>
- </h3>
- <h4><input type="submit"> </h4>
- </center>
- </form>
- </body>
- </html>
- {PHP}
- <html>
- <head>
- </head>
- <body>
- Welcome <?php
- $name=$_GET['NAME'];
- $surname=$_GET['SURNAME'];
- $age=$_GET['AGE'];
- $telephone=$_GET['TELEPHONE'];
- $address=$_GET['ADDRESS'];
- //echo "<table aligh=center border=2> <tr> <td>";
- echo "<table align=center border=40>";
- echo "<tr><th>Name</th><th>Surname </th><th>Age</th><th>Telephone </th><th> Address </th></tr>";
- echo "<tr><td> ".$name."</td><td>".$surname."</td><td>".$age."</td><td>".$telephone."</td><td> ".$address." </td></tr>";
- echo "</table>";
- /*
- echo "your name is ".$name." and ";
- echo "surname is ".$surname." and <br>";
- echo "your age is ".$age." and ";
- echo "<br> your telephone is ".$telephone." and ";
- echo "<br> your address is ".$address;
- echo "</td> </tr> </table>";*/
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement