Advertisement
william200027

BoutonPhp-)ComputerCraft

May 13th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <form method="POST">
  2. <button class="btn-href" name="submit">Activer</button>
  3. </form>
  4.  
  5. <?php
  6.  
  7. if(isset($_POST['submit'])){
  8.  
  9.  $file = fopen('donne.txt', 'w+');
  10.  
  11.  fputs($file, "21");
  12.  fclose($file);
  13.  
  14. }
  15.  
  16. ?>
  17. <form method="POST">
  18. <button class="btn-href" name="submitt">Desactiver</button>
  19. </form>
  20.  
  21. <?php
  22.  
  23. if(isset($_POST['submitt'])){
  24.  
  25.  $file = fopen('donne.txt', 'w+');
  26.  
  27.  fputs($file, "11");
  28.  fclose($file);
  29.  
  30. }
  31.  
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement