text size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a variable called $text_size which can be "small", "medium" or 
"large".

The value is submitted by a text link

 a href="<? $_SERVER['PHP_SELF'];  ?>?text_size=small" class="size1">A</a>
<a href="<? $_SERVER['PHP_SELF']; ?>?text_size=medium" class="size2">A</a>
<a href="<? $_SERVER['PHP_SELF']; ?>?text_size=large" class="size3">A


At the start of the page I initialise it to "small" if it hasn't been set

$text_size = isset($_GET['text_size'] ) ? $_GET['text_size'] : 'small'

What I want to do is store the most current value for $text_size in a 
session $_SESSION['text_size'] and then if I move to the next page start a 
session and use the strored value so the value is not reset on every page.


R. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux