Best Way to Make a Gateway Page with a Proxy Form?

Discussion in 'PHP' started by Guthix121, Feb 25, 2010.

  1. #1
    Hi,

    I want to make it so that when somebody submits a proxy form, it sends them to a Gateway page like "Please wait while we connect you to the proxy", and then it will redirect them to the destination after 10 seconds with all of the form fields submitted.

    What is the best way to do this?

    I know this is easy with links, where you can go like example.com/jump.php?go=http://www.url.com where you can use the GET method, but in this case I prefer using POST as it will have a lot of data in it - and I needs to be completely escaped.
     
    Guthix121, Feb 25, 2010 IP
  2. xrvel

    xrvel Notable Member

    Messages:
    918
    Likes Received:
    30
    Best Answers:
    2
    Trophy Points:
    225
    #2
    I'd say, use AJAX. Especially jQuery if you don't want to type lot of code.
    You can use GET, POST data sent to the any processing page that will do the work (connecting to proxy, checking it whether it is alive, etc)
     
    xrvel, Feb 25, 2010 IP