hi
your main problem was not your script, but your html code
so i changed it a little bit
you are using 3 names for one variable - Servizi, Services, Service ???????
i was not looking at your mysql connect and querying code, i was too lazy to create those tables on my server
so here's the code:
form.php
---------------------
<html>
<body>
<br>
<form name="Services" method="post" action="search.php">
<table width="400" border="0">
<tr>
<td><input type="checkbox" name="TV" value="">TV</td>
<td><input type="checkbox" name="pool" value="">pool</td>
<td><input type="checkbox" name="minibar" value="">minibar</tr>
<tr><td><input type="checkbox" name="Tennis" value="">Tennis</td>
<td><input type="checkbox" name="babysittig" value="">babysittig</td>
</tr></table>
<br><p>Hotel:
<input type="text" name="Nome" size=25 maxlength=25>
Category:
<select name="Category">
<option value=1>one star</option>
<option value=2>two stars</option>
<option value=3>three stars</option>
<option value=4>four starse</option>
</select>
</p>
<p>Address
<input type="text" name="Indirizzo" size=25 maxlength=25>
Locality;
<input type="text" name="Locality" size=25 maxlength=25>
</p>
<input type="submit" value="Submit">
</form>
</body>
</html>
----------------------------
search.php
-------------------------
<html>
<body>
<?php
mysql_connect (localhost, user, pass);
mysql_select_db (hotelsearch);
if (isset($Locality) && ($Locality == '')) {
$QueryLocality = ' AND Locality.locality LIKE \'%\'';
}
else {
$QueryLocality = ' AND Locality.locality LIKE \'%$Locality%\'';
}
if (isset($Category) && ($Category != '')) $QueryCategory = ' AND Category.IdCategory = '.$Category;
$QueryServices = '';
if (isset($TV)) $QueryServices .= ' AND Services.service = \'TV\'';
if (isset($pool)) $QueryServices .= ' AND Services.service = \'pool\'';
if (isset($minibar)) $QueryServices .= ' AND Services.service = \'minibar\'';
if (isset($Tennis)) $QueryServices .= ' AND Services.service = \'Tennis\'';
if (isset($babysitting)) $QueryServices .= ' AND Services.service = \'babysitting\'';
$myquery = "SELECT DISTINCT Hotel.Name,Address, Category.Category FROM Hotel,
Services,Category, Hoteldetail WHERE Hoteldetail.IDHotel = Hotel.IDHotel AND Hoteldetail.IDServices =
Services.IDServices AND Hoteldetail.IDCategory=Category.IDCategory ".$QueryServices."".$QueryCategory;
$result = mysql_query ($myquery);
if ($row = mysql_fetch_array($result)) {
do {
print $row["Name"];
print (" "

;
print $row["Category"];
print (" "

;
print $row["Locality"];
print (" "

;
print $row["Address"];
print ("<p>"

;
print $row["Services"];
print (" "

;
} while($row = mysql_fetch_array($result));
} else {print "Sorry, no records were found!";}
?>
</body>
</html>
---------------
hope this works