PHP Classes

File: dumpFontsSaverSESSIONvariables.php

Recommend this page to a friend!
  Classes of Bob Wright   PHP Font Chooser Menu   dumpFontsSaverSESSIONvariables.php   Download  
File: dumpFontsSaverSESSIONvariables.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Font Chooser Menu
Display a menu to let users choose a text font
Author: By
Last change:
Date: 3 years ago
Size: 1,033 bytes
 

Contents

Class file image Download
<?php
/*
 * filename: dumFontsSaverSESSIONvariables.php
 * this code saves font and background color for captions
*/

// disable error reporting for production code
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
// Start session
session_name("Storybook");
include(
"/home/bitnami/session2DB/Zebra.php");
// session_start();
   
if(isset($_SESSION["hfontinfo"])){
       
$hfontinfo = $_SESSION["hfontinfo"];
    } else {
       
$hfontinfo = "The hfontinfo variable is not set"; }
    if(isset(
$_SESSION["pfontinfo"])){
       
$pfontinfo = $_SESSION["pfontinfo"];
    } else {
       
$pfontinfo = "The pfontinfo variable is not set"; }
    if(isset(
$_SESSION["cbinfo"])){
       
$cbinfo = $_SESSION["cbinfo"];
    } else {
       
$cbinfo = "The cbinfo variable is not set"; }
   
header("Refresh: 6; URL=./FontsChooser.php");
    echo
"Saved the font and background color choices<br>
    as SESSION variables.<br>Returning to Chooser in 6 seconds.<br>"
;
        echo
'<br>'.$hfontinfo.'<br>';
        echo
'<br>'.$pfontinfo.'<br>';
        echo
'<br>'.$cbinfo.'<br>';
?>