Iphone 4G Wifi Password Issues
You could try this:

Go to Settings -> common -> reset (at the bottom). On the next screen you can choose which settings you wish to reset. Choose "Network settings".

I assume the stored settings are deleted now, and after a re-connect the connection should work.