I am trying to make it so that the same select fields are populated on the second and final page. The 2nd page is in a directory.
So, it is home page with short form, the 3 select fields, then it should redirect to inner page with those same 3 select fields auto populated, and 6 more questions.
I now have it partially on a php driven site.
drop down select on 1st page
then it goes to an inner page
<option value="Milk" <?php echo $_POST['Purpose'] == "Milk" ? 'selected="selected"' : ''?>>Milk</option>
<option value="Bread" <?php echo $_POST['Purpose'] == "Bread" ? 'selected="selected"' : ''?>>Bread</option>
<option value="Coffee" <?php echo $_POST['Purpose'] == "Coffee " ? 'selected="selected"' : ''?>>Coffee</option>
if it helps VA Loan center has a similar form that does what I want
it does not have to be sessions maybe just echo. I have it working on another site but not where it autopopulates the selected info, it does it for text input fields, but I am stuck on select fields.
before the drop-down somewhere to just show that value on screen, what value does it show? Also you know you’ve changed the post varname, is that intentional?