Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML + XML Simple Script

    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?


  • #2
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Location
    Ames, Iowa, USA
    Posts
    116
    Thanks
    9
    Thanked 4 Times in 4 Posts
    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.
    -- </byuhobbes>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •