Html combobox save user input

7 posts Page 1 of 1
Contributors
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Html combobox save user input
AnoPem
Hello as the title says i need to create a combobox where it saves the users input from a textbox and stores it local on their machine, can anyone give me an example if its possible ?
https://t.me/pump_upp
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: Html combobox save user input
comathi
Do you mean you want to add values from a textbox into a combobox, but reload all the data in the combobox when the user visits the page again?

I imagine this could be done using PHP and cookies, where you could store an array of items in a cookie and retrieve that upon page load.

If you don't mind me asking, though, what will be the purpose of this? There might be a better way of doing it for your specific case.
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Re: Html combobox save user input
AnoPem
Im trying to do a web radio that uses html and jquery, so it would be nice if the user could store the actual radio stations
https://t.me/pump_upp
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: Html combobox save user input
comathi
The best option in that case, I think, would be to setup a database on your server and store the users' "playlists" or whatever in there... or else his radio stations would be wiped out everytime he clears his browser data or when he goes to another device.
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: Html combobox save user input
Filip
Would this be saved on change or on button click?
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Re: Html combobox save user input
AnoPem
Filip wrote:
Would this be saved on change or on button click?
On button click
https://t.me/pump_upp
User avatar
Ffenixw0rks
VIP - Donator
VIP - Donator
Posts: 152
Joined: Sun Jun 19, 2011 2:51 pm

Use local storage. link
Image
7 posts Page 1 of 1
Return to “Help & Support”