Session variable to repopulate form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hop2grl
Forum Newbie
Posts: 1
Joined: Thu Apr 19, 2007 10:49 am

Session variable to repopulate form

Post by hop2grl »

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!
Post Reply