Originally posted by rapmonkey
I have a message editor that uses an IFRAME. How can I make it so that a user filles out a form (enters text into the IFRAME), clicks a submit button and the contents of the IFRAME get sent with the form? Thanks. 😃
This is a client-side issue, not a server-side one. What you'll need to do is add some Javascript to the onSubmit event handler. It would (a) locate the iframe in the browser's document model, (b) find the text area in the iframe (you have got it in a form element? Or given it an id attribute?), (c) copy the value of that text area into a hidden element in the form you're submitting, (d) submit the form.
Why is it in an iframe in the first place?