Jump to content

html link to php to xml to http post


mathewjenkinson

Recommended Posts

Hi all,

Im trying to create an test environment where a php page can complete a XML document and then proceed to post said xml document to a remote server.

 

Its based on a telephone database currently stored on a local mysql server. The user clicks the telephone number and this is then inserted into the XML document completing the document. This is then posted to a remote server.

 

Ive written the PHP so that when the user clicks from the displayed page, it loads a link to:

http://localhost/xml_post.php?tel=0123456789 but how do I get the xml_post to insert the string into the pre-written xml and then post it to the server?

 

the xml is small and basic:

 

<?xml version='1.0' encoding='UTF-8' ?>

<username>test</username>

<password>123</password>

<tel_number>INSERTED STRING</tel_number>

 

 

Basically it goes:

 

HTML link-> PHP -> XML -> database

 

any help would be appericiated

thank you!

Mathew

 

Link to comment
https://forums.phpfreaks.com/topic/204372-html-link-to-php-to-xml-to-http-post/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.