Kiporralixo Mar 7th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     // session precisa receber o valor antes de ser imprimida no checkbox
  3.     session_start();
  4.     $_SESSION['valor'] = 44;
  5. ?>
  6. <input type="checkbox" id="horns" name="nome1" value="<?php echo $_SESSION['valor']?>"> valor = <?php echo $_SESSION['valor']?>
  7. <?php
  8.     $_SESSION = null;
  9.     // se você não trabalhar com usuarios logado pode usar o
  10.     session_abort();
  11. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand