Ok, I'm having this problem with my forms. The user fills out the form and then they go to a page to verify that everything is entered correctly.
The problem is that certain things, like the country and state, only return one word.
If they select United States in the drop-down list, only United shows up on the verification page.
Here is my code, sorry if is a little sloppy.
This is the selection list:
<select name = country>
<option value = <?php echo $country ?>><?php echo $country ?></option>
<?php
for($i = 0; $i <= $count; $i++)
{
$country_option = $COUNTRY_result[$i]['country_name'];
?>
<option value = <?php echo $country_option ?>><?php echo $country_option ?></option>
<?php
}
?>
</select>
This is on the verification page:
$country = $_POST['country'];
And here is where it gets displayed:
<td><font class="news"><?php echo $country ?></td>
Keep in mind that the country name shows up fine in the selection list.
thanks