I am using a jump menu to select multiple drop down boxes in a form which are related to the choice you make in the first drop down box. The problem is that the page reloads and everything before this tag is cleared. I want to be able to repost the data. I know that I need to use sessions in my code but I dont know exactly how to use them for this case.
My code is similar to this:
<? php
session_start();
?>
<table>
<tr><td>
<input name="Encounter_ID" size="30" maxlength="10" ></td></tr>
<select id="Instance_Type111" name="mcate" onchange="MM_jumpMenu('parent',this,0)">
<option value="0">Select</option>
<?php
-->query data from a database and use similar code for the second drop down box.
?>
Thanks so much! any help is useful!
Session variable to repopulate form
Moderator: General Moderators