Tengo un select creado al cual llegan los datos desde la base de datos, quiero que cuando el usuario seleccione una d las opciones y haga click en un botón q he creado, se recargue la página, no sé porque no me funciona el código q he creado, aparte d por mi inexperiencia programando, alguna sugerencia?os pego el código:
Código PHP:
Ver original
<form method="post" action="./?Lang=".$SetLanguage."&Page=".$SetPage.""> <label for="CountryInput"><?php echo $arrMainPage[$MainPageCountry]["TextHeader"]; ?></label> <select name="CountryInput" value=".$_POST['CountryInput']." > <option><?php echo $arrMainPage[$MainPageSelectOne]["TextHeader"]; ?></option> <?php $rcsCountry = $cardata->query($qryCountry); while ($row = $rcsCountry->fetch_array(MYSQLI_BOTH)) { if ($row["CountryDescription"] == $CountryInput) { $CountrySelected = "selected"; } else { $CountrySelected = ""; } ?><Option<?php echo $CountrySelected; ?> value="<?php echo $row["CountryDescription"]; ?>"><?php echo $row["CountryDescription"]; ?></option> <?php } echo "</select>" ?> </select> </form> <input type="submit" name="CountryInput" id="searchbutton" value="$_POST['CountrySelected']" />
Muchas gracias de antemano.