Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="POST">
- <button class="btn-href" name="submit">Activer</button>
- </form>
- <?php
- if(isset($_POST['submit'])){
- $file = fopen('donne.txt', 'w+');
- fputs($file, "21");
- fclose($file);
- }
- ?>
- <form method="POST">
- <button class="btn-href" name="submitt">Desactiver</button>
- </form>
- <?php
- if(isset($_POST['submitt'])){
- $file = fopen('donne.txt', 'w+');
- fputs($file, "11");
- fclose($file);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement