1
How do I, so that when the user selects an option, the PHP variable $idCourse
receive the value
of the selected option.
I made this code just to show the idea:
Code
<select name="valor" id="idCourse">
<option value="1">Curso 1</option>
</select>
<?php
$idCourse = $_POST['valor'];
$result = $pdo->selectAll($idCourse);
?>
have to send using a form or using jquery
– user60252