I want to know how to do this. I have been puzzled for a few days now and I am still new at PHP. I understand how to make it appear as input field but not select.
OK, the site is being built as follows:
each page has an index.php files with php includes files:
I have on all pages the form with 3 select options.
site.com > submit/registration.php
site.com/innerpage > submit/registration.php
Like what this site
has on front page
3 select menu options, whatever the user selects on that page is saved and chosen on the select fields on the 2nd part (or page) of the form
My problem is getting those "3" selected values to be chosen again on the 2nd page.
This is not sessions, but rather echo
an example in page 2 of the form of how echo was used.
<select name="State" id="State" tabindex="5";>
<option value="AL" <?php echo $_POST['State'] == "AL" ? 'selected="selected"' : "'?>>Alabama</option>
<option value="AK" <?php echo $_POST['State'] == "AK" ? 'selected="selected"' : ''?>>Alaska</option>
just above the form on 2nd page
$purpose = $_POST['Purpose'];
$state = $_POST['State'];
now there is nothing in the header with people I am newbie with PHP.
Should something else be there?
Since my site acts like WP with example.com/page2, the 2nd page is not .php. so
//let's start the session /////////
I didn't want or think this needed sessions. Any help is appreciated.