I am trying to "post" a URL within my php script which will return the result of submitting a form.

Its for the PageRank lookup of domain names...here:
http://www.seochat.com/seo-tools/pagerank-lookup/

So what I did was: look inside the source html code and withing the "form" section identify all the elements, then try and 'submit' the form by simply calling the URL in the browswer window (to test, eventually this will be done via a VB app hopefully) as such:

http://www.seochat.com/?option=com_seotools&tool=10&go=1&urls=imageshack.com

this doesn't do anything tho...any ideas??

help much
gerry
ps: this works for something like http://inventory.overture.com/d/searchinventory/suggestion/?mkt=us&lang=en_US&term=imageshack.com

    there isn't any code(yet). I'm just putting the URL into the browser (which will do the same as the code)
    gerry

      Then can you please explain yourself better...

      Are you trying to create a form where you can input URLs, and, when the form is posted, will run a script to provide the user with their page rank?? Is that correct?

        I might not have understood what exactly you mean, but if Im assuming correctly you
        cant do that on that specific page you desire. Seems like to much is happening behind the scenes on that site, so there is no URL. You've got to type the URL manually, but maybe that website has some scripts that you could implement.

          OK:

          I think I understand what you are asking.

          Let's look at this example:

          http://inventory.overture.com/d/searchinventory/suggestion/?mkt=us&lang=en_US&term=web+design

          When you type (or paste) this into your browser address bar you are going to a particular page AND you are passing certain values via the query string (everthing that is BOLDED above).

          The script on the receiving end is programmed to read those values and to use those values while it executes...

          However, you cannot (usually) just pass values to a website via the query string and expect it to "operate" the way you want it to, unless it has been programmed to do so...

          In php, to pass and read those values being passed in the query string you must use the SUPER GLOBAL array: $_GET.

          For more information, please read here: http://www.php.net/manual/en/reserved.variables.php#reserved.variables.get

          Hope that helps.

            Write a Reply...