I have just recently done an export of my selenium IDE code to selenium web driver. I have found that a lot of the commands that worked in IDE either fail to work or seleniu
There's nothing wrong with either version of your code. Whatever is causing this, that's not it.
Have you triple checked your locator? Your element definitely has name=submit not id=submit?