how to send hidden variables through URL?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jkbhanuprakashreddy
    New Member
    • Jan 2010
    • 1

    how to send hidden variables through URL?

    Can some one help me how to send hidden variables in a URL?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by jkbhanuprakashr eddy
    Dear all,

    Can some one help me how to send hidden variables in a URL.

    Thanks in advance,

    with,
    bhanu.
    Variables in the URL are, by definition, not hidden. You'll have to explain your question more.

    Comment

    • code green
      Recognized Expert Top Contributor
      • Mar 2007
      • 1726

      #3
      The Apache module mod_rewrite may help

      Comment

      • rbowen
        New Member
        • Jan 2010
        • 1

        #4
        Hidden vars

        Suggesting that someone use mod_rewrite, without any sort of context to the answer, isn't particularly useful. And, in this case, it's probably not the right answer.

        The question implies that you want to take hidden form variables and put them in the URL. They won't be hidden any more. mod_rewrite won't help with this.

        What you need to do is use POST rather than GET as your form METHOD. The only context in which hidden form fields make any sense at all is when you POST them.

        Comment

        • nilayanand
          New Member
          • Nov 2006
          • 10

          #5
          URL paramater cannot be hidden. Use some kind of ecryption decryption mechanism.

          Comment

          • itsloop
            New Member
            • May 2009
            • 18

            #6
            dude you should have to use encryption decryption technique u can use


            Code:
             base64_encode()   base64_decode()

            Comment

            • Atli
              Recognized Expert Expert
              • Nov 2006
              • 5062

              #7
              Originally posted by itsloop
              dude you should have to use encryption decryption technique u can use


              Code:
               base64_encode()   base64_decode()
              Base64 encryption is hardly an improvement over plain-text.
              Try mcrypt instead.

              Comment

              • kovik
                Recognized Expert Top Contributor
                • Jun 2007
                • 1044

                #8
                What's the point of hidden variables in a URL? o.O

                Comment

                • dgreenhouse
                  Recognized Expert Contributor
                  • May 2008
                  • 250

                  #9
                  And the answer is...

                  You can't hide the variables...

                  Only <input type="hidden".. . /> as part of a 'post' form will be hidden and someone with 'sniffing' ability could see those anyway. As a matter of fact, anyone who knows what they're doing will be able to review and modify your page(s) on the fly and see what's in the hidden fields anyway.

                  Don't fret over that which you can't control and focus on those areas that you can - that's my advice anyway.

                  If you really want to protect the contents of the variable, you could use PGP JavaScript encryption. See: http://www.google.com/search?hl=en&q=javascript+pgp for a start.

                  Comment

                  Working...