Advertisement
AlexWebDevelop

Untitled

Jun 21st, 2020
1,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. session_destroy();
  4. session_name('MySession');
  5. session_start();
  6.  
  7. if (isset($_GET["client_feedback"]) && $_GET["client_feedback"] !== "") {
  8. $_SESSION["client_feedback"] = $_GET['client_feedback'];
  9. }
  10.  
  11. if (true)
  12. {
  13.     echo '<pre>';
  14.     print_r($_GET);
  15.     print_r($_SESSION);
  16.     echo '</pre>';
  17. }
  18.  
  19. if ($_SESSION["client_feedback"]) {
  20.     ?> <style type="text/css">#form__feedback {display:block!important}</style> <?php
  21. } else {
  22.     ?> <style type="text/css">#form__feedback {display:none!important}</style> <?php
  23. }  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement