Submit XML Via POST

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hiritek
    New Member
    • Jul 2006
    • 1

    #1

    Submit XML Via POST

    Hi,

    Im trying to setup a form that a user adds data into, and then for that information to be submitted via XML to another website:

    This is a demo form:
    Code:
    <form method="POST" action="https://www/xmlrequesttest.php">
    <input type="hidden" name="xmlrequest" value="<XML/>”>
    <input type="submit" name="submit" value="Submit">
    </form>
    And i need the XML to look like:
    Code:
    <AVAILABILITYREQUEST>
    <USERNAME>test</USERNAME>
    <PASSWORD>test01</PASSWORD>
    <USERDATA>0394298888</USERDATA>
    </AVAILABILITYREQUEST>
    I dont understand how to link the xml into the form....?
    Last edited by Dormilich; Jan 22 '09, 09:36 AM. Reason: added [code] tags
Working...