After I added your code, I got the following error,
"Couldn't execute query. Unknown column 'name' in 'where clause'"
I'm a bit confuse, I'm not sure if this code is corect
$sql = "SELECT Bloom_Name FROM ihsreg WHERE name='Bloom Name'";
the field on my form is Bloom Name and on my table ihsreg the field name is Bloom_Name.
Can you please explain the error I made.