Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>Yet another PHP</title>
- </head>
- <body>
- <?php
- if(isset($_GET["name"])) {
- echo "<h1>Здравей, ".$_GET["name"]."</h1>";
- } else {
- ?>
- <form action="index.php" method="get">
- <label for="name">Моля въведете името си</label>
- <input type="text" name="name" value="" id="name" />
- <input type="submit" value="Изпрати" />
- </form>
- <?php
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment