help with hidden variables..

G

graniteraju

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?
 
J

Jim Moe

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top