I need a simple PHP form capable of populating an XML file with data. (I'm building a Google maps widget that maps local garage sales.)
Here's the catch, though. I need the form to kick out the XML file in exactly the following format.
So, basically, I need fields on the form for the following.
I think it's fairly obvious based on the XML sample above where I need each piece of this content to fall. I need to be able to add entries to and delete entries from the XML file, if that's possible. If deleting entries is not possible, I at least need to be able to add entries to the XML file. I can always go in and manually delete entries or just start a new file each day. That's not a big problem.
I'd really appreciate it if anyone could help me out with this or at least point me in the right direction.
Here's the catch, though. I need the form to kick out the XML file in exactly the following format.
<?xml version="1.0" encoding="windows-1250"?>
<markers>
<marker lat="0" lng="0" html="1234 Nowhere Street <br> Saturday, 10:00-4:00 <br> Items for sale include bed, dresser, toys for young children, and clothing." label="1234 Nowhere Street"/>
</markers>
So, basically, I need fields on the form for the following.
- Latitude
- Longitude
- Address (Needs to fall under "html" value. XML break following, as seen above.)
- Date/Time (Needs to fall under "html" value. XML break following, as seen above.)
- Items For Sale (Needs to fall under "html" value.)
- Label
I think it's fairly obvious based on the XML sample above where I need each piece of this content to fall. I need to be able to add entries to and delete entries from the XML file, if that's possible. If deleting entries is not possible, I at least need to be able to add entries to the XML file. I can always go in and manually delete entries or just start a new file each day. That's not a big problem.
I'd really appreciate it if anyone could help me out with this or at least point me in the right direction.