<?php
if(isset($_POST['title'])) {
$xml = simplexml_load_file("db/list.xml");
$xml_album = $xml->addChild("album");
$xml_album->addChild("albumart", $_POST["albumart"]);
$xml_album->addChild("title", $_POST["title"]);
$xml_album->addChild("artist", $_POST["artist"]);
$xml_album->addChild("price", $_POST["price"]);
$xml_album->addChild("url", $_POST["url"]);
$xml->saveXML("db/list.xml");
echo ("Succes");}
?>

<html>
<body>

<form  method="post" action="">
<input type="text" name="albumart" placeholder="Albumart"><br>
<input type="text" name="title" placeholder="Title"><br>
<input type="text" name="artist" placeholder="Artist"><br>
<input type="text" name="price" placeholder="Price"><br>
<input type="text" name="url" placeholder="Url"><br>
<input type="submit">
</form>
    
</body>
</html>