I have a drop down list with Select Option and information written inside are retrieved from the database with a query .
<select name="moto">
<?php
include 'connessione.php';
$qry = "SELECT NomeOggetto FROM Oggetto";
$result = mysql_query($qry);
while($row = mysql_fetch_array($result))
{
echo '<option value='.$row["NomeOggetto"].'>'.$row["NomeOggetto"].'</option>';
}
?>
</select>
The problem is that if in the menu i have the name of a motorbike with one space between its name , for example ( Kawasaki Ninja) , when i send it to the PHP page with the POST Method it only displays Kawasaki . How can i show the entire name with the space included ? this is the php page :
<?php echo $_POST['moto']; ?>