1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

automatically form submission with webbot

Discussion in 'PHP' started by mehdiali, May 5, 2008.

  1. #1
    Hi everyone
    i am reading "Webbots, Spiders, and Screen Scrapers" book and
    i want to create a webbot that automatically submit a form ,
    but it has no out put.
    this is the code :
    
    <?php
    include("LIB_http.php");
    
    # Initiate addresses
    $action="http://ce.usc.ac.ir/courses/86-87/sem2/112079/912/index.php?section=users&amp;file=sign&amp;id=in";
    $ref = "" ;
    
    # Set submission method
    $method="POST";
    
    # Set form data and values
    $data_array['username'] = "83111207"; // my user name
    $data_array['password'] = "83111207"; // my pass
    $response = http($target=$action, $ref, $method, $data_array, EXCL_HEAD);
    ?>
    
    PHP:
    and http://ce.usc.ac.ir/courses/86-87/sem2/112079/912/
    is address of the form.
    you can get LIB_http.php from https://panel.schrenk.com

    thank you in advance
     
    mehdiali, May 5, 2008 IP
  2. dataman

    dataman Peon

    Messages:
    94
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    echo $response;
    PHP:
     
    dataman, May 5, 2008 IP
  3. mehdiali

    mehdiali Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    mehdiali, May 5, 2008 IP