How do I get rid of long URLs?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gunnar G

    How do I get rid of long URLs?

    In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
    to send variables from one script to another
    Is there a way to not have the long URL and just call foo.php and send the
    variables in a more "invisible" way?

    --
    I didn't know sci.bio.paleont ology was that low traffic until I tried read
    the thread "Where is everyone?" and found it to be expired.
  • Gunnar G

    #2
    Re: How do I get rid of long URLs?

    In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
    to send variables from one script to another
    Is there a way to not have the long URL and just call foo.php and send the
    variables in a more "invisible" way?
    I forgot to tell, there is no user input required on the webpages

    --
    I didn't know sci.bio.paleont ology was that low traffic until I tried read
    the thread "Where is everyone?" and found it to be expired.

    Comment

    • Martin Mandl - m2m tech support

      #3
      Re: How do I get rid of long URLs?

      On Feb 3, 9:33 am, Gunnar G <deb...@comhem. sewrote:
      In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
      to send variables from one script to another
      Is there a way to not have the long URL and just call foo.php and send the
      variables in a more "invisible" way?
      >
      I forgot to tell, there is no user input required on the webpages
      >
      --
      I didn't know sci.bio.paleont ology was that low traffic until I tried read
      the thread "Where is everyone?" and found it to be expired.
      Dear Gunnar,

      you could try to serialize your data and then compress it ...
      Or, if you are looking for a method to send data from one server to
      another, have a look at the curl functions - this way you could use
      POST variables instead of GET and your data would disappear completely
      from your URL ...

      Good luck
      Martin

      Comment

      • Tomasz Wasiluk

        #4
        Re: How do I get rid of long URLs?

        Maybe you are looking for the HTTP POST method?

        Comment

        • Colin McKinnon

          #5
          Re: How do I get rid of long URLs?

          Gunnar G wrote:
          >In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
          >to send variables from one script to another
          >Is there a way to not have the long URL and just call foo.php and send
          >the variables in a more "invisible" way?
          >
          I forgot to tell, there is no user input required on the webpages
          >
          Then whoever has designed the site designed it to work that way - moving to
          statically addressed URLs is not going to be trivial.

          If the structure is consistent then you might be able to get some mileage
          out of using mod_rewrite. And / Or you could look at condensing and
          multiplexing your variables.

          Or just shove a big frame in front of the page.

          C.


          Comment

          • Jerry Stuckle

            #6
            Re: How do I get rid of long URLs?

            Gunnar G wrote:
            In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
            to send variables from one script to another
            Is there a way to not have the long URL and just call foo.php and send the
            variables in a more "invisible" way?
            >
            Gunnar,

            If you're just passing data from one page to another, you could use the
            $_SESSION variable. Easier than using CURL, but one difference with
            what you have now. $_GET values are transient - they only appear when
            they are passed as parameters. Once a $_SESSION value is set, it
            remains until you clear it or the session ends. This may or may not
            cause problems for you.

            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            • P Pulkkinen

              #7
              Re: How do I get rid of long URLs?

              "Gunnar G" <debian@comhem. sekirjoitti
              viestissä:xHXwh .31065$E02.1256 4@newsb.telia.n et...
              In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
              to send variables from one script to another
              Is there a way to not have the long URL and just call foo.php and send the
              variables in a more "invisible" way?
              Are you really sure you want to use your time to this? Because if point is
              to move information to ANY other page in ANY other domain without ANY
              problems, that's the normal way to do it. Too much efforts just on "beauty"
              of url are waste of time.

              Of course sessions and cookies are there. But before using them, there
              should IMHO be a REASON to do it.



              Comment

              • Krustov

                #8
                Re: How do I get rid of long URLs?

                <comp.lang.ph p>
                <Gunnar G>
                <Sat, 03 Feb 2007 08:27:09 GMT>
                <xHXwh.31065$E0 2.12564@newsb.t elia.net>
                In many cases I use URLs like foo.php?a=4b&c= d&e=f&g=h etc.
                to send variables from one script to another
                Is there a way to not have the long URL and just call foo.php and send the
                variables in a more "invisible" way?
                >
                You could use a form button instead of a hyperlink .

                <input type="hidden" name="user" value="<?php print $uzi; ?>">

                The above variable wont show up on the next page .


                --

                (work in progress)

                Comment

                Working...