Closed Thread
Results 1 to 4 of 4

Thread: [PHP] POST - in the background

  1. #1
    NLC bozley05 is on a distinguished road bozley05's Avatar
    Join Date
    Oct 2002
    Location
    Melbourne, Australia
    Posts
    1,365

    Question [PHP] POST - in the background

    When a site user submits a form via POST method on my site, ie. to submit.php I want the submit.php file to post the info elsewhere on a remote server, without the user seeing or going to that page.

    Do you use socket() or something?? I donno, I hope someone understands what I am on about.

    Thanks
    ezyrewards.com - Free iPods, Domain Names, Vouchers and more.
    Now with over 75,000 members!

  2. #2
    Senior Member bloodyveins is an unknown quantity at this point bloodyveins's Avatar
    Join Date
    Mar 2003
    Location
    squid.conf
    Posts
    230
    yeah, communcation through socket is a possible solution to this problem. one thing to reckon is everything depends on the problem itself and the environment around the possible solutions. so, you should find your own approach to this problem based on system spesification and methods available.

  3. #3
    Junior Member Dan Grossman is an unknown quantity at this point
    Join Date
    May 2004
    Posts
    12
    Use the Snoopy PHP class, you'll LOVE it, I know I do:

    http://sourceforge.net/projects/snoopy/

    Submitting a form or doing ANYTHING with remote sites is extremely easy and almost everything is built into the class for you.

    PHP Code:
    //example.php
            
    include("Snoopy.class.php");
            
    $snoopy = new Snoopy();

            
    $submit_url "http://www.example.com/submit.php";
            
    $snoopy->cookies["username"] = "dangrossman";
            
    $submit_vars["var1"] = 35;
            
    $submit_vars["anotherforminput"] = "$stuff";
            
    $submit_vars["submit1"] = "Confirm";

            
    $snoopy->submit($submit_url,$submit_vars); 
    Dan Grossman | dan@dangrossman.info
    PicVault - Unlimited free image and gallery hosting
    Targeted Visitors - 1,000 Website Visitors $1.95
    Awio Web Services LLC Over 5,000 Orders Filled

  4. #4
    NLC bozley05 is on a distinguished road bozley05's Avatar
    Join Date
    Oct 2002
    Location
    Melbourne, Australia
    Posts
    1,365
    me likes... great little class that one!!!
    ezyrewards.com - Free iPods, Domain Names, Vouchers and more.
    Now with over 75,000 members!

Closed Thread

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