I didn’t know where to post this, so I hope it is right.
I currently have the ELITE XML theme from flashden. I want to make it so it:
-
Creates an XML file for EACH content box/image box rather than reading all of the content from one single .XML
-
I need help creating a PHP script that will grab the content submitted from an HTML form, and place it in a new .XML so its content will show up like it would if I were to add it to the XML manually.
here is my XML structure:
<image>
<title>Application</title>
<url>www.TheAppShare.com</url>
<img>elite_powerful_dynamic_xml_gallery_galleries/category1/img1.jpg</img>
<tmb>elite_powerful_dynamic_xml_gallery_galleries/category1/tmb1.jpg</tmb>
<topic><![CDATA[App Summary will be Here.]]></topic>
<desc><![CDATA[MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO MoRE INFO ]]></desc>
</image>
Here is my HTML form. The name="" on each text area represents a variable code in the XML, ex name=“topic” is
<html>
<head>
<title>Application Submission Form/title>
</head>
<body>
<p><center>Submit an Application</center></p>
<form method="POST" action="d2xml.php">
<input type="hidden" name="write_xml" value="true">
<table>
<tr>
<td>Type:<input type="text" value="Application" name="title" size="50"></td>
</tr>
<tr><td>URL / Download Link:<input type="text" name="url" size="50"></td>
</tr>
<tr><td>App Icon (Link to Image):<input type="text" name="tmb" size="50"></td>
</tr>
</tr>
<tr><td>Screenshot(s):<input type="text" name="img" size="50"></td>
</tr>
</tr>
<tr><td>Category & Version:<input type="text" value="ex. Games // version 1.0" name="topic" size="50"></td>
</tr>
</tr>
<tr><td>App Info & Description:<br>
<textarea name="description" cols="50" rows="20"></textarea></td>
</tr>
</table>
<p align="center">
<input type="submit" value="Submit" name="create"></p>
</form>
</body>
</html>