help with hidden variables..

Discussion in 'HTML' started by graniteraju@gmail.com, Feb 28, 2006.

  1. Guest

    I have the following html code:
    <html>
    <body><form method="post" action=page2.html>
    <select name="states">
    <option>California </option>
    <option>Colorado </option>
    <option>Connecticut</option>
    </select>

    </form></body>
    </html>


    I want to store the "selected state value" as a hidden variable and
    retrieve in other pages(maintaining a session).


    how do I do that?
    , Feb 28, 2006
    #1
    1. Advertising

  2. Jim Moe Guest

    wrote:
    >
    > I want to store the "selected state value" as a hidden variable and
    > retrieve in other pages(maintaining a session).
    >

    The easiest way is to use a server-side processor like PHP or JSP that
    has session capabilities.
    It is possible to write an <input type="hidden" ...> element to
    subsequent pages but they only apply when in <form>s. And you still need a
    way to track a session.

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)
    Jim Moe, Feb 28, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. aaa
    Replies:
    2
    Views:
    500
  2. Replies:
    1
    Views:
    1,832
    Roedy Green
    Feb 28, 2006
  3. Replies:
    9
    Views:
    922
  4. Rick
    Replies:
    3
    Views:
    8,089
    Alexey Smirnov
    Apr 13, 2010
  5. SolarCanine
    Replies:
    2
    Views:
    247
    SolarCanine
    Sep 20, 2005
Loading...

Share This Page