Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Created August 13, 2013 19:38
Show Gist options
  • Save SpencerCooley/6224869 to your computer and use it in GitHub Desktop.
Save SpencerCooley/6224869 to your computer and use it in GitHub Desktop.
xml example using post data from a form.
$xml_data = '<SalesOrders>'.
'<row no="1">'.
'<FL val="Subject"><?php echo $_POST["subject"]; ?>!/FL>'.
'<FL val="Due Date"><?php echo $_POST["date"]; ?>!</FL>'.
'<FL val="Sub Total"><?php echo $_POST["total"]; ?>!</FL>'.
'<FL val="Tax"><?php echo $_POST["tax"]; ?>!</FL>'.
'</row>'.
'</SalesOrders>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment