Guest User

Untitled

a guest
Oct 21st, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <h4>Form Method Test</h4>
  2. <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
  3. Name: <input id="douch" class="name" type="text" name="name"><br>
  4. Age: &nbsp;&nbsp; <input class="name" type="text" name="age"><br>
  5. <input class="name" type="submit" name="submit" value="send">
  6. </form>
  7.  
  8. <!-- PHP Method Test -->
  9. <?php
  10. if (isset($_POST['submit']))
  11. {
  12. echo 'Your name is ' .$t1name. '<br>';
  13. echo 'You are ' .$t1age. ' years old';
  14. // I WANT TO DISABLE THE TEXTBOX HERE //
  15. } else{
  16.  
  17. }
  18. ?>
Add Comment
Please, Sign In to add comment