Advertisement
shaashwato1308

PHP - Form Submit

Mar 6th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. ::index.php::
  2. <form method="post" action="tiny.php">
  3. <input id="url" name="url" />
  4. <input type="submit" name="submit" id="submit"/>
  5. </form>
  6.  
  7. ::tiny.php::
  8. <?php
  9. if (isset($_POST['submit'])) {
  10.     $url = $_POST['url'];
  11.     echo "url: ".$url;
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement