Advertisement
Guest User

form.php

a guest
Jan 5th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2.     require_once('vars.php');
  3. ?>
  4. <!doctype html>
  5. <html langl="en">
  6. <head>
  7.     <meta charset="utf-8">
  8.     <title></title>
  9. </head>
  10. <body>
  11. <?php
  12.     $value = null;
  13.     if(isset($_GET['submit'])){
  14.         $value = "Start";
  15.     }
  16. ?>
  17.     <form action="?" method="get">
  18.         <input type="submit" name="submit" value="<?php
  19.             if($change)
  20.                 echo "Start";
  21.             else
  22.                 echo "End";
  23.             $change = !$change;
  24.             ?>"
  25.         />
  26.     </form>
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement