Use php form to update xml file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • npm
    New Member
    • Apr 2007
    • 57

    Use php form to update xml file

    Hi,
    I'm sorta new to xml and php and was wondering if there's a simple way to build a php form that could edit (add/delete/change) elements in an xml file. Specifically for a band, so they could update their own tour schedule.

    I would be building the tour page, with some javascript to load the xml file and display the tour dates, but I want to set something up so they could make the changes.

    Any recommendations for tutorials or such?

    Thanks in advance!

    Sorry, this should probably go in the php forum.
    Last edited by npm; Mar 31 '08, 06:46 PM. Reason: Wrong Forum?
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    I do not know that it would be that simple, but it could be done. To get specifics you would need to post your question in a forum for PHP topics.

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      There are a couple modules in PHP that could fulfill your needs
      PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


      You could also use XSLT, (in PHP?) but that might be overkill.

      I'm not sure why you don't use javascript's DOM, plus an ActiveX component to save the xml.

      Comment

      • omerbutt
        Contributor
        • Nov 2006
        • 638

        #4
        Originally posted by jkmyoung
        There are a couple modules in PHP that could fulfill your needs
        PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


        You could also use XSLT, (in PHP?) but that might be overkill.

        I'm not sure why you don't use javascript's DOM, plus an ActiveX component to save the xml.
        jkmyoung
        can you tell me how to save using xml cauz i would prefer using dom but havent used Activex before

        Comment

        • jkmyoung
          Recognized Expert Top Contributor
          • Mar 2006
          • 2057

          #5
          It depends on what xml module you're using in php.

          Comment

          Working...