input form xml

Discussion in 'PHP' started by rigas, Jan 10, 2010.

  1. #1
    hello

    i am trying to create an html form that it will be able to modify the content of an xml file, or add content to the xml file. this xml file is has certain information about various songs. the content added must also be validated with an xsd file.

    i m not familiar with this stuff but googling helped me write something. do you have any idea how to continue?

    
    <html>
    <body>
    <form name="home" action="final.php" method="get">
      <p>welcome!!  type the song information:</p></br>
      <p>title:
        <input type="text"  name="title" id="1" />
        </p>
      <p>composer:
        <input type="text"  name="composer" id="2" />
        </p>
      <p>lyrics:
        <input type="text"  name="lyrics" id="3" />
        </p>
      <p>artist:
        <input type="text"  name="artist" id="4" />
        </p>
      <p>album:
        <input type="text"  name="album" id="5" />
        </p>
      <p>produser:
        <input type="text"  name="produser" id="6" />
        </p>
      <p>publiser:
        <input type="text"  name="publisher" id="7" />
        </p>
      <p>length:
        <input type="text"  name="length" id="8" />
        </p>
      <p>year:
        <input type="text"  name="year" id="9" /></br>
        </p>
        
      <input type="submit" name="Submit" value="submit info">
        
    </form>
    </body>
    <html>
    
    Code (markup):
     
    rigas, Jan 10, 2010 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    I'd suggest you learning HTML before starting with PHP....
    Anyhow, simply overwrite the xml file in place of adding/removing stuff,
     
    Sky AK47, Jan 13, 2010 IP
  3. gaven

    gaven Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    php has some inbuilt xml functions...
    but if i were u,i would rather write contents to database normal way and get the contents as xml from database....assuming you require to have input for something (make be swf file) in xml form
     
    gaven, Jan 14, 2010 IP