i need a way to write new data to an XML file using a PHP form.
i know this topic has probably been covered quite a few times, but all the examples were wayyy too complicated for what i want to do.
i basically have a XML phonebook, so if i lose my phone i will still have people’s phone numbers.
i want to add a form at the bottom so I can add a new entry to my phonebook.
the structure of my XML file is like this:
<?xml version=“1.0”?>
<phonebook>
<person>
<firstname>…</firstname>
<lastname>…</lastname>
<number>…</number>
</person>
<person>…and so on.
i have a separate PHP file to display the data, but i have no idea how to add to it.
thanks!!!