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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.