Probably need more informtion. Name is not one of your column names so this is confusing. However, the search would be in a sql statement and probably needs to be addressed on the database list.
However, the sql statement would probably looks something like this:
$sql = "SELECT * FROM table WHERE name LIKE '%$_POST['hotspot']%'";
The % on either side of the search criteria allows for something like
if $_POST['hotspot'] = "bob";
this select statement will find "bobby joe" and "joe bob"
Sorry about the choices of names, but I'm from the south 🙂