SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru phantom007's Avatar
    Join Date
    May 2008
    Posts
    752
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Question Fetch records from third party website

    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:

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

    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

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,234
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)
    Can you go directly to the profile.php page without going to user.php page first as long as you know the profile "autoID" value?

  3. #3
    SitePoint Guru phantom007's Avatar
    Join Date
    May 2008
    Posts
    752
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Yes I can.

    There are apparently 50,000 users in their database and I do not want to store them on mine or hard code each one's autoID in my application


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •