Putting a form in a modal popup

A client has asked me to put a core form into a modal popup. I thought that seems like a simple request so i made a stack and put the form in that then call the stack in to a modal in my php.

But it fails to submit

Anyone else tried this with any success?