Fetch records from third party website

Discussion in 'PHP' started by cancer10, May 14, 2009.

  1. #1
    Hi

    There is a scenario where there is an HTML form on some website (say http://xyz.com/user.php), which prompts for username. When you enter the username and click on "Submit", using the POST method it takes you to the same page (user.php), queries the DB and then redirects to that user's profile (http://xyz.com/profile.php?profile=55412256)

    Please note that in the above querystring, 55412256 is NOT the username that you input in the first page, its probably an autoID or something else, so please do not get confused.


    The profile.php page includes User's Firstname, Lastname, Date Of Birth.

    The html format for the same is:

    <table border="0" width="100%">
      <tbody>
        <tr>
          <td><h1>Member details</h1></td>
        </tr>
        <tr>
          <td><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Name: </strong> <span id="Name">Mr John Smith </span><br>
            <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Date of Birth: </strong> <span id="DOB">31 Oct 1982 </span><br>
            <br>
          </td>
        </tr>
      </tbody>
    </table>
    
    
    Code (markup):

    Now, my question is that, since I do not have the DB access to that website, so is there anyway I can automate this system in my application and fetch a user's Date of birth?

    What I mean is, people come to my website, enter their username and get their date of birth. I know this is pretty pointless but this is what I need :)


    I don't know how but I have a strong feeling that this can be done.

    Please assist :)


    Thanks
     
    cancer10, May 14, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    bartolay13, May 14, 2009 IP