You are here: text size « PHP « IT news, forums, messages
text size

Posted by "Ross" on 01/12/06 15:34

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация