Jump to content


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


Help Send XML File

Recommended Posts

Dear All pls help me I'm totaly new with php and i tried many examples with fsockopen but they all fail and even now i don't know if it's a code problem or conection problem i need a tested script that do the second job so i can figure out where is the problem is:

[b]1ST i have an HTML form that looks like below: [/b]
<form action="page.php" method="post">
<input type="hidden" name="memberid" value="11">
<input type="hidden" name="password" value="goodpass">
<input type="text" name="key">
<input type="submit" name="submit" value="Activate">

Is there a way that i cound hide the two hidden field to not appear when the visitor click view page source and stay able to submit the form to be send like that way

[b]2nd sending XML string data to a webservice [/b]

i have an html form that user should fill first
then i have to generate and XML data type
last step i should send it to a server url i.e( on port 5050
I should use HTTP Post method to talk with this gate way
here is the XML example

<?xml version="1.0"?>
    <Submit DeliveyReport="Yes" ReadReply="No" ReplyCharging="No" Adaptation="Yes" Redistribution="No">
      <From AddrType="AT_EMAIL" UserID="test" UserCredit="10">test</From>
        <To AddrType="AT_MISSDN">202</To>
      <SmilFrame ID="0">
      <SmilFrame ID="1">
      <ClassType> MM_CT_PERSONNEL</ClassType>
      <Priority> MM_PT_NORMAL</Priority>

how could i pass this xml string data as a file or as a string data onfly to the sepecifed port at the specifed host?

Share this post

Link to post
Share on other sites


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.