Okay basically I'm posting a form to a PHP handler that gets the XHTML from $_POST into an array.
So on the PHP side I have all the information I need, but I need to seperate the array into fields and values.
So this is what is posted and taken from the $_POST array...
<events BeginSequence=”100000” EndSequence=”100010” Unit=”MFTA”>
<event BeginSequence=”100000” PayRoll=”10054” RecordedAt=”24/09/2008 11:53:02” Security”B” Direction=”I” />
<event BeginSequence=”100001” PayRoll=”10078” RecordedAt=”24/09/2008 11:53:02” Security”P” Direction=”O” />
</events>
I now need to extract each event within events and the tag + value.
For example in a 2 dimensional array I need <event BeginSequence=”100000” PayRoll=”10054” RecordedAt=”24/09/2008 11:53:02” Security”B” Direction=”I” /> to become...
array(
array( BeginSequence=> 100000, PayRoll=> 10054, RecordedAt=> 24/09/2008 11:53:02, Security=> "B", Direction=> "I" ),
...
...
)
Never had to work with XHTML before so hoping someone can help me. Thanks in advance.