Hi, I am a beginner here. I was not knowing how to assign the value of a Dropdown menu to a Hidden type variable. Code: ------------------------------------------------------------------------------------ <form name=form1 onsubmit="test()"> <select name=car> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value ="opel">Opel</option> <option value ="audi">Audi</option> </select> <input type=hidden name=hidden_car value="**********"> <INPUT TYPE=SUBMIT VALUE=ENTER> -------------------------------------------------------------------------------------- now, i want the hidden variable 'hidden_car" TO have the value that is selected from the dropdown menu before the SUBMIT button is hit. in the above example, im not sure what shud be entered in place of ******** for the hidden variable. Any help is appreciated. Thank You
Why would you want this? The value of the hidden field would be exactly the same as the drop down fields...
But Still, what be assignemt to the hidden type variable. I have implemented a logic which needs something like that. Thanks
Thats a laughable phrase because doing something like this is completely illogical. If you really want to do it you need Javascript.