Quote:
quote:Originally posted by madhukp
You want to get the HTML from the iframe. isn't it ? You can use the following statement.
id_editor_frame.document.body.innerHTML
where id_editor_frame is the ID of the iframe.
|
Yea I want to do just that.
suppose my code reads :
<form action="prevrev.php" method="POST">...(some form elements)
<iframe id="iView" name="review" marginwidth="0" style="width: 460px; height:100px">
</iframe> ......(some more form elements)
</form>
Now,I have to extract the HTML formatted content contained in the <iframe> and collect it in a PHP variable.
I want the data in it to be sent to 'prevrev.php' like the contents of other form elements.
I have implemented a very basic Rich text Editor (BOLDface,italic,underline etc.) using Javascript,
so that my friends can format the text inside the <iframe> and when they click the "submit" button,the data inside <iframe> is sent AS IS to the 'prevrev.php' page for processing.
What I find difficult to understand is how to implement this in PHP.
Thanks for taking efforts to reply.
But I think this gives you a clearer view of my problem.
Please reply.