Catch result from an external web page
| From: | Rahul Sitaram Johari | Date: | Wed, 20 Jun 2007 15:16:16 +0000 |
| Subject: | Catch result from an external web page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-257498@lists.php.net to get a copy of this message | ||
Ave,
Basically I¹m throwing an account number to a webpage on an external website
And I want to catch the result in some sort to find out if the account
number exists.
Let¹s say I have this form:
<FORM ACTION="http://www.somewhere.com/acc.asp"
METHOD="post" NAME="frm">
<input TYPE="TEXT" NAME="ACCTNUM" SIZE="20"
MAXLENGTH="15">
<input TYPE="HIDDEN" NAME="GOOD" VALUE="0">
<INPUT NAME="frmSubmit" TYPE="submit" VALUE="Let's
Go!">
</FORM>
Now when I click submit the browser goes to www.somewhere.com if the
account number is good, it¹ll bring up further option if not it
redirects to an error page.
www.somewhere.com is an external site I don¹t have access to it¹s codes or
variables.
I want to be able to determine if that form succeeded in getting to the
Account Page, i.e., the Account Number was good or if it failed and
redirected to the error page.
Is there any way to do this?
Is there perhaps a way to read the output of that page and store it in a
text file?
Thanks.
PS: Anyone with an inquisitive mind NO! I¹m not trying to hack someone¹s
website. ³Somewhere.Com² is our client and we need to hit their website to
determine if the account is good or not for a service we¹re providing them.
Right now we¹re trying to avoid requesting them for their source/code or
help for that matter.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rahul Sitaram Johari
CEO, Twenty Four Seventy Nine Inc.
W: http://www.rahulsjohari.com
E: sleepwalker@rahulsjohari.com
³I morti non sono piu soli ... The dead are no longer lonely²