Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** PAGINA HTML *** (A SEGUIRE LA PAGINA PHP)
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <form action="eform1.php" method="get">
- <!-- controlli per raccogliere i dati -->
- <label for="user">User Name</label><br>
- <input type="text" name="user" id="user"> <br><br>
- <label for="password">Password</label><br>
- <input type="password" name="password" id="password"><br><br>
- <!-- bottone di submit -->
- <input type="submit" name="bottone" id="invia" value="INVIA">
- </form>
- </body>
- </html>
- *** PAGINA PHP ***
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <?php
- $user = $_GET["user"];
- $password = $_GET["password"];
- //facciamo finta di aver effettuato controlli
- //e 'sanificato' i dati ricevuti
- echo "Ho ricevuto come user name: $user e come password: $password<br>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement