Hello there
I wanted to ask you this: I have a get variable in the url which indicates the language in which a website is shown.Moreover, there is a form with a text area which loses its content when the language is changed because I am not keeping any get or post variable with the content of that text area. For that reason, I wanted to learn some way to keep the state of the content of the text area so that the user can still see the text that they wrote when they changed the language of the website. You can check what I mean if you write anything in the text area of the contact section of http://www.metatradersoftware.com and change the language before clicking send. As you will see, the content of the text area will be lost.
I would appreciate any idea to keep that content.
Thanks in advance
keeping the page state FORMS
Moderator: General Moderators
-
thosecars82
- Forum Commoner
- Posts: 94
- Joined: Thu Apr 03, 2008 6:31 am
- Location: Arganda, Madrid
- Contact:
Re: keeping the page state FORMS
I would advice not to worry about this issue. Any user would change to his language prior anything else.
PS: Please, keep this problem in a single thread.
PS: Please, keep this problem in a single thread.
There are 10 types of people in this world, those who understand binary and those who don't
-
thosecars82
- Forum Commoner
- Posts: 94
- Joined: Thu Apr 03, 2008 6:31 am
- Location: Arganda, Madrid
- Contact:
Re: keeping the page state FORMS
I think I already know that I should use a $_SESSION variable. Nevertheless, I still want to know if there is any good alternative to javascript by using only php for reading the current content of elements like text areas in forms that I might have in my page to save them in a session variable before linking to another page. Well, if there's not such a good alternative, I guess I will have to use javascript to read the content from my text areas if I had more than one.