Just worked it out. Really simple too.
Just gave the iframe a name and targeted the form to it just like good 'ol' normal frames. Didnt think I could do that but there we go.
Theres me using variables to control the content of the iframe and I could have done this in the first place. Never mind.