Professional Web Applications Themes

newbie pass variables on CGI - PERL Miscellaneous

Dear all, This is a general question, I would like to know how can I pass variables from a page to another one. I am talking about a web page, under CGI. I can pass values, but I don't know how I could pass the full hash, or the full parameters. Any help Thanks J...

  1. #1

    Default newbie pass variables on CGI

    Dear all,

    This is a general question, I would like to know how can I pass
    variables from a page to another one. I am talking about a web page,
    under CGI.


    I can pass values, but I don't know how I could pass the full hash, or
    the full parameters.

    Any help
    Thanks
    J
    John Guest

  2. #2

    Default Re: newbie pass variables on CGI

    es (John) wrote: 

    (I take it you're using CGI.pm?)

    You can retrieve the query-string with $query->query-string, and then
    append this to another URI to invoke that script with the same
    parameters.

    Ben

    --
    Joy and Woe are woven fine,
    A Clothing for the Soul divine William Blake
    Under every grief and pine 'Auguries of Innocence'
    Runs a joy with silken twine. me.uk
    Ben Guest

  3. #3

    Default Re: newbie pass variables on CGI

    es (John) writes:
     

    I use a hidden field populated using the Storable module and MIME
    base64 encoding.

    See also various modules with "Session" in their names.

    --
    \\ ( )
    . _\\__[oo
    .__/ \\ /\
    . l___\\
    # ll l\\
    ###LL LL\\
    Brian Guest

  4. #4

    Default Re: newbie pass variables on CGI

    On Fri, 31 Oct 2003, Ben Morrow wrote:
     

    Hmmm, CGI.pm doentation is a bit vague in this area. I'm looking
    at http://stein.cshl.org/WWW/software/CGI/

    | query_string()
    | Returns a query string suitable for maintaining state.

    Does this mean it's in URLencoded form, or not?

    At any rate, anyone who's using -oldstyle_urls should take note of
    what it says about the need for HTML-escaping ampersands.

    cheers
    Alan Guest

Similar Threads

  1. How to pass variables from JavaScript to Flex
    By luke14free in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: May 5th, 08:41 PM
  2. CF pass variables to Flash
    By lvbao in forum Coldfusion Flash Integration
    Replies: 4
    Last Post: May 8th, 10:26 PM
  3. Replies: 0
    Last Post: January 30th, 09:10 PM
  4. Can one pass variables through a selector?
    By Andrew Hunter in forum Mac Programming
    Replies: 5
    Last Post: September 10th, 03:18 PM
  5. can I pass table variables to sprocs?
    By Dan in forum Microsoft SQL / MS SQL Server
    Replies: 3
    Last Post: August 9th, 11:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139