Advertisement
min_m3

php session storage & url parameter

Jun 21st, 2020
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php session_start(); ?>
  2.  
  3. <?php
  4. if (isset($_GET["client_feedback"]) && $_GET["client_feedback"] !== "") {
  5. $_SESSION["client_feedback"] = $_GET['client_feedback'];
  6. }
  7.  
  8. if ($_SESSION["client_feedback"]) {
  9.     ?> <style type="text/css">#form__feedback {display:block!important}</style> <?php
  10. } else {
  11.     ?> <style type="text/css">#form__feedback {display:none!important}</style> <?php
  12. }  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement