I do not know if it's possible but I need to use special characters in a <option>
that has accents. The option value is collected in a variable called $genero
. The example I am trying is the following:
<option name="Acción" value="Acción" <?php if ($genero == 'Acción') {echo 'selected';} ?>>Acción</option>
$genero = isset($_GET['Genero']) ? $_GET['Genero'] : 'todos';
However, I do not know if due to PHP or HTML, instead of receiving the value of Acción
I receive the Acción
, with which the search in the database is null.