View Full Version : HTML + XML Simple Script

11-21-2008, 04:55 PM
Hey all ...

Just recently registered here but been browsing for a while. Great forum to get ideas and grab bits of code to use!

I am really not that knowledgeable in any language and get by with using existing scripts, etc ...

I have searched and searched for a few weeks now for something I would like to get done, though, I am not sure what the best way to do this would be or if it is even possible.

I'd like to have a simple HTML page with a checkbox and submit button. The Checkbox is labeled 'Watched'. When checking the box and clicking submit, the value of 1 (or 0 in the case of unchecked) gets written to a xml file in the field <watched></watched>. Additionally, the HTML checkbox would grab the status or state of the checkbox from the XML file.

Is something like this possible? If so, any chance I could get some help?


11-26-2008, 01:54 AM
I'm not sure if this is as much of an XML question as it is a web scripting question. HTML, XML, and JavaScript are all handled by the browser and do not give you access to write to a file on the server.

If your web page(s) to have read/write access to data stored on the server, you will have to use some kind of server scripting or programming language. PHP and CGI are commonly used for simple content management, but a variety of programming languages could be used. Additionally, there are several freely available database management systems that make it much easier to read/write data than using a flat file (MySQL, PostGreSQL, etc).

Perhaps your best bet would be to look for some beginners tutorials on PHP.