Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['button1']))
  3. {
  4. echo "BUTTON1 aaa";
  5. }
  6. else if(isset($_POST['button2']))
  7. {
  8. echo "Day la button2";
  9. }
  10. else
  11. {
  12. ?>
  13. <form action="" method="post">
  14. <input type="submit" name = "button1" value="button1" />
  15. <input type="submit" name = "button2" value="Button2" />
  16. </form>
  17. <?php
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement