Hi, just trying something out (im new to PHP) so far ill show you the relevant bits. Im good with html and css so nothing wrong there 😃
ok so:
// top of pahe within php tags
$region = Array ('EU', 'NON EU');
<!-- in body -->
<form action="" method="POST" name="region">
<select name="region" id="select_type" onchange="document.region.submit()">
<option> ---Please Select--- </option>
<?php
foreach($region as $key => $value) {
echo '<option value="'.$key.'" .$_POST['region'] == '$key' ? 'selected' : '>'.$value.'</option>';
}
?>
</select>
</form>
i get this error on the page 🙁 :
Parse error: syntax error, unexpected 'region' (T_STRING), expecting ',' or ';' in C:\xampp\htdocs\xampp\Start\trial\index.… on line 86
Not sure what to do now any help would be appreciated 😃
Thanks