Jump to content

[SOLVED] List box Values


~n[EO]n~

Recommended Posts

 

Hi, i am using a list box values which I want to preserve in all the pages and save it in Database

 

<select name="select">
												      <option selected="selected" value="FR">French</option>
												      <option value="EN">English</option>
											            </select>

 

How can I make the value save in a variable so that while user fills the form this value (from the list box) will be saved in db ?

 

Totally confused, any help n suggestions ???

Link to comment
https://forums.phpfreaks.com/topic/73440-solved-list-box-values/
Share on other sites

Ok,

 

I am making a site in two language , French and English., the client will add contents from admin panel in two language English or French, for that I have made a field in my table named LANG where FR or EN will be saved.

 

So, while the admin enters his login from login.php, i have added a list box (code is in first post) from which the value EN or FR will be passed,

 

What I want is to save the value in a variable so that I can save it in the table (through hidden field), now how shall I make the value to be saved (like global variable) or something like that.

 

That's all ....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.