Is there anyway to read the address bar for instance if the address bar shows this in the brower:

http://search.ebay.com/ws/search/SaleSearch?sofocus=bs&satitle=chicken+cheese&sacat=-1%26catref%3DC5&fbd=1&dfsp=1&_trksid=m37&from=R6&nojspr=y&pfid=0&fswc=1&few=&saprclo=&saprchi=&fss=0&saslop=1&sasl=&fls=4%26floc%3D1&sargn=-1%26saslc%3D0&salic=1&saatc=1&sadis=200&fpos=18951&fsct=&sacur=0&sacqyop=ge&sacqy=&sabfmts=0&saobfmts=exsif&ftrt=1&ftrv=1&sabdlo=&sabdhi=&saaff=afdefault&afcj=&afmp=&fsop=1%26fsoo%3D1&fcl=3&frpp=50

essentially, I would like to have the address turned into a variable.

    Is this your domain?

    Are you using Apache?

    What do you want to use to get the address?

      The address is just an example. I want to use my domain, but ebay's search show a good example

        If you use Apache, you should be able to use a .htaccess file and grab the REQUEST_URI and the QUERY_STRING to create your variable using mod_rewrite, you can find that info here: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

        If you want to use PHP, you can use $SERVER variables to create your variable as well. $SERVER variables are available here: http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.server

          Thanks dude...i'll look into the php option with server variables

            4 days later

            You can work out the URL with a combination of the following server variables:

            HTTP_HOST
            SECURE
            SCRIPT_NAME
            PATH_INFO
            QUERY_STRING

            And possibly a few more. See the CGI specification for more info.

            This still won't give you the full URL however, as a "fragment" part (.e.g #someanchor) is not sent to the server.

            The server can't know what fragment the client used.

            Mark

              Write a Reply...