|
Posted by -Lost on 08/22/06 10:47
"Cool Shaker" <derekblakeyNOSPAM@NOSPAMblueyonder.co.uk> wrote in message
news:a1BGg.7035$r61.440@text.news.blueyonder.co.uk...
> Hell again.
>
> I was again wondering if someone could point me in the right direction please.
>
> The website I am developing has the requirement that there are multiple buttons in the
> menu ( the A's) that change the font size and also give a text only style. This is a
> customer requirement and must be there.
>
> The url is http://www.libraryclub.co.uk/index.php
>
> The code that switches the font size works.
>
> My problem is that the page http://www.libraryclub.co.uk/listallmemories.php passes a
> value from a list to the page http://www.libraryclub.co.uk/memory.php and again that
> works fine and the record from the data base is loaded OK, but if a user clicks to
> change the text size using one of the four A's at the top of the screen once they are in
> the memory.php page the screen refreshes with the new text size but the value of the
> item selected from the list is now gone. The result of that is that the SQL query fails
> as it does not know which record to pull from the database.
>
> If a normal screen refresh is done the page still works fine. It is only when the text
> size is changed that it fails.
>
> Even if I load the value to a second variable in the memory.php page , the second
> variable is also cleared.
>
> 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
Navigation:
[Reply to this message]
|