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):
I'd suggest you learning HTML before starting with PHP.... Anyhow, simply overwrite the xml file in place of adding/removing stuff,
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