Ciao
ho un problema ( credo stupido ) con una select di html:
dovrei recuperare il valore della scelta della select in html per poi creare la select(php) e visualizzare i campi della relazione con id scelto
<html>
<head>
<title></title>
</head>
<body>
<?php
echo "<select name='select'>";
echo "<option value = '1' >1";
echo "<option value = '2' >2";
echo "<option value = '3' >3";
require 'config.php';
require 'connect.php';
$query = 'select * from selezione where ID=$ilvaloredellaselect';
$result = mysql_query($query);
if (!$result) {
die('Errore nella query $query: ' . mysql_error());
}
echo 'select';
?>
</select>
</body>
</html>
GRAZIE

Rispondi quotando