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
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 ....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.