synted Posted March 14, 2008 Share Posted March 14, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/96129-posting-data-and-grabing-the-result/ Share on other sites More sharing options...
samshel Posted March 14, 2008 Share Posted March 14, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/96129-posting-data-and-grabing-the-result/#findComment-492119 Share on other sites More sharing options...
lordfrikk Posted March 14, 2008 Share Posted March 14, 2008 If the form was pointing to your script, which would in turn do a POST request to 3rd party URL, then it would work. Quote Link to comment https://forums.phpfreaks.com/topic/96129-posting-data-and-grabing-the-result/#findComment-492123 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.