Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- </head>
- <body>
- <form method="POST">
- <input type="tekst" name="imie"></input>
- <button type="submit" >Sprawdz</button>
- </form>
- <?php
- $a = $_POST['imie'];
- switch($a){
- case "michal": echo("Witaj ".$a); break;
- default: echo("nie znam cie"); break;
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement