Jump to content

PHP / XML HELP!


jvargas

Recommended Posts

Hello everyone,

First let me thank anyone who replies in advance.

My dilema is as follows:
I have an HTML form that sends information to a php script that writes an XML file for me. This is fine.

The form contains 3 fields: id, path, name.

What I need to do is continue to apend to the XML anytime the form is submited before the ending node.
Here is an example:

XML FILE

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album id="1" path="carShow" name="some auto show" />

</gallery>

Here is what I need to apend to the XML file:

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album id="1" path="carShow" name="some auto show" />

[b][color=red]<album id="2" path="album" name="another album" />[/color][/b]  <--- Information from the HTML form added here before the ending node.

</gallery> [b]<---- Ending node[/b]

Is this possible?

Thank you.
Jay
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.