On my Galaxy S2, if you hold down the power button on the right side it brings up a menu. Once is to power down, another is to turn on/off data.
Does the iphone not have a simple way to disable cell data? I usually have mine off because it prolongs battery life. I flick it on when I need it. As a result I rarely have both data and wifi enabled at the same time.