Save string to file onclick event

error77
error77 used Ask the Experts™
on
hi all,

I have a few radio buttons and need to save the selection value into a file using js / jquery ?

I would like the option to save it as a string which would be update if the user click another radio button..

Can anyone help please?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
dsackerContract ERP Admin/Consultant

Commented:
You won't be able to save it to a file on the client machine unless you use ActveX, make a call to a server-side program, etc.

Can you save it as a cookie, or save it on a database?
nishant joshiTechnology Development Consultant

Commented:
where you want to save a file on server or on a client?

Author

Commented:
I don't mind if it save on server or client
Web Application Programmer
Commented:
If you are saving the data on client side, you can use cookies (keep in mind that user can disable or clear cookies, that is something the control of the programmer).
http://www.quirksmode.org/js/cookies.html
http://www.w3schools.com/js/js_cookies.asp

To save the data on server side, simple post to a page on your server either using AJAX or conventional form submit and capture the HTTP request data using what ever server side script you use and save it. Actual steps of capturing and saving data on server side will depend on the scripting language you use.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial