wrote the beginnings of a function to generate code for an iframe with user inputs.