collect data from html form
Posted: Sun Jan 10, 2010 8:06 pm
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.
here is the form. while i was trying to collect the data i found out that i might have a problem. using the code below i couldn't see any of my data i previously filled at the form. does anyone has an idea why?
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.
Code: Select all
<html>
<body>
<form name="home" action="test.php" method="post">
<p>welcome!! type the song information:</p></br>
<p>title:
<input type="text" name="title"/>
</p>
<p>composer:
<input type="text" name="composer"/>
</p>
<p>lyrics:
<input type="text" name="lyrics"/>
</p>
<p>artist:
<input type="text" name="artist"/>
</p>
<p>album:
<input type="text" name="album"/>
</p>
<p>produser:
<input type="text" name="produser"/>
</p>
<p>publiser:
<input type="text" name="publisher"/>
</p>
<p>length:
<input type="text" name="length"/>
</p>
<p>year:
<input type="text" name="year"/></br>
</p>
<input type="submit" value="submit info">
</form>
</body>
<html>
Code: Select all
<html>
<body><p>test</p>
<?php
echo $_REQUEST["title"];
?>
<p>test again</p>
</body>
</html>