If you notice in the picture there is no a submit bottom but let's suppose there is one.

table one...

Code MySQL:
[CODE]CREATE TABLE IF NOT EXISTS `restaurants` (
  `restaurants_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `restaurantname` varchar(255) NOT NULL,
  `image` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`restaurants_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=173 ;
[/CODE]
Contains a list of restaurants and input tag name above in the picture is where through an user will get through the restaurant table to look for an X restaurant.

What about if an user get to choose a food type of the select tags in the pictures, Then how can a query be formed to relate table one with table two which is called restaurant_food_types and is as below..
Code MySQL:
[CODE]
CREATE TABLE IF NOT EXISTS `restaurant_food_types` (
  `restaurant_food_types_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`restaurant_food_types_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;[/CODE]

Thank you.