I'm wanting to use an XML file to show some messages in a flash application. I'm wanting to populate this XML file using a simple HTML form with a textarea and when a user submits the content it will post it to the XML file.
The XML file looks like this:
<messages>
<msg>This is a sample message</msg>
</messages>
I'm presuming this require something like PHP, but if possible would rather use something like jQuery as I would prefer to run it on a local machine instead of on a web server.
Here is the HTML form:
<form id="myForm">
<fieldset>
<textarea id="textArea" placeholder="e.g. When did you last give money to charity?"></textarea>
<div class="submit">
<label for="textArea">Type a short message to show in the pool</label>
<input type="submit" id="sendText" value="Submit" />
</div>
</fieldset>
</form>
Thanks.
EDIT: After being told it's not possible with jQuery, I would like to use PHP. So I'm looking for a simple bit of PHP that will save this as XML.