New to php, Form Information Gathering

Discussion in 'PHP' started by moongooz, Apr 21, 2008.

  1. #1
    Hi guys,

    Im trying to build a tool for my site that lets me gather information on prices from several other sites.

    The problem is they all use forms that run in a 3 step process before ending up on the price list, the forms use post method to pass the information around.

    I would like input on how do I go on solving this with php, populating the form in the 3 steps and making it automatic is my main problem, parsing the results I think I will be ok.

    Thanx in advance.:confused:
     
    moongooz, Apr 21, 2008 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Use cURL to post the header information directly to the form's action file. Parse the information, get the form action and post the header information. Do this until you reach your destination page, then parse the results.

    Cheers,
    Louis
     
    Louis11, Apr 21, 2008 IP
  3. moongooz

    moongooz Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanx for the information on cURL Louis I'll dig into it today and if I get in trouble (wich I should :eek: since I am just beginning) I will get back to you.

    Any other pointers would be apreciated though for the clewless newbie around.
     
    moongooz, Apr 22, 2008 IP
  4. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Read up on Regular Expressions (Regex for short), they will be invaluable for what you are trying to do :)

    If you have any problems feel free to PM me, i'll be around :cool:
     
    Louis11, Apr 22, 2008 IP