PHP Drop Down

Hello,

I am trying to get the value I selected to show in the dropdown menu. So if refreshed the user will not have (–Select Country–) appear again when refreshed it will say (USA) or something. Once I select the value it will update the database. I just want it to show that on the front end to.
Here is what I have:

[php]

Location
--Select Country-- UK AUS USA [/php]

please help ???

First I would brush-up on your HTML ---->

[code]

Select Country
UK
AUS
USA
  

[/code]

Then you can always interject PHP code into the HTML:
[php]

<?php echo '' . $Display . ''; ?>
UK
AUS
USA
  

[/php]

However, to get want you really want you’ll need Ajax or something similar.

as well as what i have now which is;
[php]

<?php echo '' . $Display . ''; ?>
UK
AUS
GER

[/php]

there is also something else running beside it.

[php]
$TMPL[‘currentName’] = $request[4]; $TMPL[‘currentEmail’] = $request[3]; $TMPL[‘currentCountry’] = $request[22];
[/php]

the database just updates but when i refesh the page it just goes back to ‘UK’ even tho i selected ‘AUS’

need some help on this one. :frowning:

Sponsor our Newsletter | Privacy Policy | Terms of Service