// PHP example, created with Memention Designer // http://www.memention.com/designer $pageurl = "/page.php"; $pageurl = 'page.php'; session_set_cookie_params(3600); session_start(); //---------------------------------------------------------------------- // Check if entering pages if (isset($_REQUEST['page'])) $page = $_REQUEST['page']; else $page = 'simple_1'; if (isset($_GET['last_1'])) { setcookie( 'last_1', '1', 0, '/' ); $_COOKIE['last_1'] = '1'; } if (isset($_GET['last_2'])) { setcookie( 'last_2', '1', 0, '/' ); $_COOKIE['last_2'] = '1'; } if (isset($_GET['last_3'])) { setcookie( 'last_3', '1', 0, '/' ); $_COOKIE['last_3'] = '1'; } if (isset($_GET['last_4'])) { setcookie( 'last_4', '1', 0, '/' ); $_COOKIE['last_4'] = '1'; } ?>
echo date("y-m-y H:i.s"); ?> |
What is PHP?
What is Memention Designer?
View page.php Design PDF
Download example zip
Try a simple Quiz // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_2') { // place php code here, pre page content ?>
Crossroad Mixture Law // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_3') { // place php code here, pre page content ?>
J.R.R Tolkien // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_4') { if (isset($_COOKIE['last_1']) && isset($_COOKIE['last_2']) && isset($_COOKIE['last_3']) && isset($_COOKIE['last_4']) ) { ?>
} else { ?>
Return to Quiz } } //---------------------------------------------------------------------- // if ($page == 'simple_5') { // place php code here, pre page content ?>
Santa // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_6') { // place php code here, pre page content ?>
Steve Jobs // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_7') { // place php code here, pre page content ?>
Darth Vader // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_8') { // place php code here, pre page content ?>
Tim Burton // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_9') { // place php code here, pre page content ?>
Bill Gates // place php code here, post page content } //---------------------------------------------------------------------- // if ($page == 'simple_10') { // place php code here, pre page content ?>
Peter Perpetuum
// place php code here, post page content
}
?>