Jump to content

Posting data and grabing the result


synted

Recommended Posts

I have the following form

<FORM action="http://domain/cgis/search.cgi" method="post">
  <TABLE width="210" border=3 frame=box style="color: orange; background: black">
    <!--DWLayoutTable-->
    <TR>
      <TD width="62" height="23"> </TD>
      <TD width="128"> </TD>
    </TR>
    <TR>
      <TD height="28" align=right valign="top"><b>Source:</b></TD>
      <TD valign="top"><select name=provider>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        </select>
        *</TD>
    </TR>
    <TR>
      <TD align=right><b>Number:</b></TD>
      <TD><INPUT type=text maxlength=8 size=8 name=Ticket>
        *</TD>
    </TR>
    <TR>
      <TD align=right><b>Mode:</b></TD>
      <TD><select name=Mode>
          <option selected value=Details>Details</option>
          <option value=Status>Status</option>
        </select>
        *</TD>
    </TR>
    <TR>
      <TD height="28" colspan=2 align=center valign="top"><INPUT type=submit value=Send></TD>
    </TR>
    <TR>
      <TD height="1"></TD>
      <TD></TD>
    </TR>
  </TABLE>
  </p>
</FORM>

 

I need to grab the data that i get (xml) so i can reuse them in a better way. Can anyone help?

 

Thanks in advanced.

Link to comment
https://forums.phpfreaks.com/topic/96129-posting-data-and-grabing-the-result/
Share on other sites

Hi,

 

You cannot use a normal form to submit to a third party URL and grab the data as after you submit the form, the execution will go to the third party page on which you dont have a control. Try CURL library in PHP. It will be very simple using CURL. For parsing XML you get you can check out PEAR Classes.

 

HTH

SamShel

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.