View Single Post
  #1 (permalink)  
Old 05-06-2008, 12:26 PM
Hrimthurs Hrimthurs is offline
Newbie
 
Join Date: Jan 2008
Posts: 8
Rep Power: 0
Hrimthurs is on a distinguished road
Default Dynamically update php variables based on option value

Hi there,
This is a little hard to explain, but i'll give it a go.
What i need to do is have a <select> dropdown with options, eg.
HTML Code:
<select name="finish">
<option  value="" selected="selected">Select a finish</option>
<option value="white">White</option>
<option value="black">Black</option>
</select>
Of which, the selected option is called in as a variable via php and echoed later on in the same page, which dynamically updates when you select a different option.
I thought the code would look something like this
PHP Code:
<?php echo $_GET['finish']; 
echo 
$finish?>
But that method won't update dynamically.
Is anyone able to help?
Reply With Quote

Sponsored Links