You are here: Re: how would I keep the value of a variable? « All PHP « IT news, forums, messages
Re: how would I keep the value of a variable?

Posted by Cool Shaker on 08/22/06 11:46

>> How would I keep the number of the item that was selected from the list
>> after changind
>> the text size please?
>>
>> Many thanks
>
> If you are doing a query and the query is fairly consistent you could
> create another table that stores the current user's selection, that way
> you merely query for the choice (of the previous query) and always place
> it in the page *if* it has been chosen in the first place.
>
> (Sessions and Cookies are also an alternative here.)
>
> I would like to applaud you though, whether by accident or no, not
> modifying those font sizes via JavaScript is a valiant effort in the right
> direction of not misusing it.
>
> Hope that makes sense...
>
> -Lost
>

Hi Lost

Thanks for the rely and the compliment!

In fact since I posted the message i seem to have worked out how to do it
using a second cookie. The first is used by the switcher and the second I
use to store the value of the memory required.

Your idea of the second table is a good one for another part of the site so
that a user can step forward and backward only through a sub set of the data
which will be obtained from a query.

Many thanks

 

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

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