Hello Everybody
I have following form:
<form id="form1" name="form1" method="post" action="">
<table align="center" width="600">
<tr>
<td align="center"colspan="2">
<label>Event Name</label>
<select name="event_id" id="event_id">
<option value="Event 22">Event 22</option>
<option value="Event 23">Event 23</option>
<option value="Event 26">Event 26</option>
<option value="Event 32">Event 32</option>
</select>
</td>
</tr>
<tr>
<td>Turnstile 01</td>
<td><select multiple="multiple" name="t1[]" id="t1" >
<option selected="selected" value="VIP">VIP</option>
<option selected="selected" value="Zone 1">Zone 1</option>
<option selected="selected" value="Zone 2">Zone 2</option>
<option selected="selected" value="Zone 3">Zone 3</option>
</select></td>
</tr>
<tr>
<td>Turnstile 02</td>
<td><select multiple="multiple" name="t2[]" id="t2">
<option selected="selected" value="VIP">VIP</option>
<option selected="selected" value="Zone 1">Zone 1</option>
<option selected="selected" value="Zone 2">Zone 2</option>
<option selected="selected" value="Zone 3">Zone 3</option>
</select></td>
</tr>
<tr>
<td>Turnstile 03</td>
<td><select multiple="multiple" name="t3[]" id="t3">
<option selected="selected" value="VIP">VIP</option>
<option selected="selected" value="Zone 1">Zone 1</option>
<option selected="selected" value="Zone 2">Zone 2</option>
<option selected="selected" value="Zone 3">Zone 3</option>
</select></td>
</tr>
<tr>
<td>Turnstile 04</td>
<td><select multiple="multiple" name="t4[]" id="t4">
<option selected="selected" value="VIP">VIP</option>
<option selected="selected" value="Zone 1">Zone 1</option>
<option selected="selected" value="Zone 2">Zone 2</option>
<option selected="selected" value="Zone 3">Zone 3</option>
</select></td>
</tr>
<tr>
<td>Turnstile 05</td>
<td><select multiple="multiple" name="t5[]" id="t5">
<option selected="selected" value="VIP">VIP</option>
<option selected="selected" value="Zone 1">Zone 1</option>
<option selected="selected" value="Zone 2">Zone 2</option>
<option selected="selected" value="Zone 3">Zone 3</option>
</select></td>
</tr>
<tr>
<td>Turnstile 06</td>
<td><select multiple="multiple" name="t6[]" id="t6">
<option selected="selected" value="VIP">VIP</option>
<option selected="selected" value="Zone 1">Zone 1</option>
<option selected="selected" value="Zone 2">Zone 2</option>
<option selected="selected" value="Zone 3">Zone 3</option>
</select></td>
</tr>
<tr>
<td align="center"colspan="8">
<input name="submit" type="button" value="Generate XML" />
</td>
</tr>
</table>
</form>
and the corresponding xml document:
<?xml version="1.0" encoding="utf-8"?>
<event timeout_reuse="60" id="22">
<turnstile name="1">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
<turnstile name="2">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
<turnstile name="3">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
<turnstile name="4">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
<turnstile name="4">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
<turnstile name="5">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
<turnstile name="6">
<category value="VVIP"></category>
<category value="Zone 1"></category>
<category value="Zone 2"></category>
<category value="Zone 3"></category>
</turnstile>
</event>
Is it possible to read the information of the xml document into the form and write new selections back to the xml document.
Any help would be greatly appreciated !!!