Its a phase, and if you cater to him you will breed a picky eater. At this age he's just practicing his independence, and seeing what he can and can't control. Make dinner, and if he eats, great! if he doesn't, too bad. He'll eat when he is hungry and he won't starve himself. I ditto just about everything MH had to say in her post.
Both my boys went through this stage and both came out of it fine, and both will eat just about anything you put in front of them, with the exception of one or two foods they truly don't like (my oldest won't eat anything with potato in it, he literally gags and does a little pee shiver/eye roll, its weird!)
But just keep making dinner and offering it ,if he doesn't eat it then dinner is over. He'll eat when he is hungry and won't starve, and dont' give in and make him a seperate meal or you'll quickly become a short order cook.