Edit XML via HTML Form (PHP)

LennysR82

New Member
I'm trying to create a form that will let you edit the contents of an xml tag. i currently have a form.html:\[code\]<form method="post" action="update.php"><textarea name="welcome">Name</textarea><br><input type="submit" name="submit" value="http://stackoverflow.com/questions/12514000/submit"></form>\[/code\]An update.php:\[code\]<?phpif(isset($_POST['submit'])){ $welcome = $_POST['welcome'];}?>\[/code\]and welcome.xml:\[code\]<welcome> <item> <name>$welcome</name> </item></welcome>\[/code\]I'm new to php but i can see this is a fairly simple question, i just want the form to take the value of the name in the welcome.xml, edit it, then save it again. Sorry for such a basic question.
 
Back
Top