 muiredised ESSE QUAM VIDERI
join:2007-06-11 Tacoma, WA
| reply to Vamp Re: Saving values on a web server...
You may need to brush up on the CGI (common gateway interface) protocol for some background. You will need to choose a server side language that will receive and process the data prior to actually saving it. Perl, PHP, Ruby, Python, and C are all viable choices. (my apologies if I omitted someone's favorite)
Once you have chosen a language you will author a script/program that will receive the data from a client, process it if necessary, and then store it on the server. Choices for storage are many. You can store it in a plain text file, a database, or one of many other formats. For very simple data that needs to be accessible from javascript only then perhaps your server-side script can format the data as javascript and save to a .js file. Then the client code can make an AJAX request for this file, eval it, and update whatever you got going on there on the client side.
The server-side language choice often comes down to a matter of personal preference. The actual storage method should be determined by the sophistication of the application and how the data is going to be used (need search capabilities?).
Typically PHP is thought of as an easy-to-learn server-side language so maybe start there and I'm sure you will find answers to questions as they arise. |