Re: Accept/Decline Button
Posted: Thu Nov 04, 2010 3:50 pm
Isset(). Don't forget to call session_start at the beginning.
Code: Select all
<?php
session_start();
if (!isset($_SESSION['did_accept'])) {
die('Sorry, your session timed out. Please go back and try again.');
}
if ($_SESSION['did_accept'] != true) {
die('Sorry, there was an error. Please go back and try again.');
}
// ...
?>