select option as a hidden variable...

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. Advertisements

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. Replies:
    0
    Views:
    626
  2. J. Hall
    Replies:
    2
    Views:
    1,449
    Jeff Thies
    Apr 21, 2004
  3. Quasimido CSS
    Replies:
    2
    Views:
    7,017
    Quasimido CSS
    Nov 7, 2005
  4. Rick
    Replies:
    3
    Views:
    10,246
    Alexey Smirnov
    Apr 13, 2010
  5. palmiere
    Replies:
    1
    Views:
    697
    Erwin Moller
    Feb 9, 2004
  6. WebRaster
    Replies:
    1
    Views:
    449
    Francisco Spaeth
    Oct 26, 2005
  7. Nick Spacek

    Removing select option removes entire select

    Nick Spacek, Jun 21, 2006, in forum: Javascript
    Replies:
    1
    Views:
    257
    Matt Kruse
    Jun 21, 2006
  8. rvelosoo
    Replies:
    1
    Views:
    554
    Bart Van der Donck
    Aug 13, 2008
Loading...