The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Get
By Guest on 16th February 2024 08:06:00 AM | Syntax: PHP | Views: 699



New Paste New paste | Download Paste Download | Toggle Line Numbers Show/Hide line no. | Copy Paste Copy text to clipboard
  1. <?php
  2.         if($_GET["name"]||$_GET["age"]){
  3.         echo"welcome ".$_GET['name']."<br/>";
  4.         echo"You are ".$_GET['age']." years old.";
  5.         exit();
  6. }
  7. ?>
  8. <html>
  9.         <head>
  10.                 <title> _get </title>
  11.         </head>
  12.         <body>
  13.                 <form action='<?php $_PHP_SELF?>'method="GET">
  14.                         Name:<input type="text" name="name"/>
  15.                         Age:<input type="text" name="age"/>
  16.                         <input type="submit"/>          
  17.         </font>
  18.         </body>
  19. </html>