i'm trying to submit data to a review submission page. if the user does not like what he put in, he can go back and change.
so, i'm trying to set the default value of the textarea as the data and formatting that was posted originally.
however, the formatting is lost when the editor loads the same data it posted originally:
data received from original form via POST:
<p>put some data in</p>
<p style=\"text-align: right;\">with some formatting</p>
<p style=\"text-align: center;\">does it work?</p>'
same data POST'd back to page so it can be added as default value
<form method='post' action='/project/submit_final.php'>
<input type='hidden' name='hidden' value='<p>put some data in</p>
<p style=\"text-align: right;\">with some formatting</p>
<p style=\"text-align: center;\">does it work?</p>'>
<input type='submit' value='Back to Edit>
</form>
fckeditor with default value filled:
<input type="hidden" id="FCKeditor1" name="FCKeditor1" value="<p>put some data in</p>
<p style=\"text-align: right;\">with some formatting</p>
<p style=\"text-align: center;\">does it work?</p>" style="display:none" />
if you hit source with the data in, this is what is printed:
<p>put some data in</p>
<p style="">with some formatting</p>
<p style="">does it work?</p>
--the style="" tag is messed up.
any ideas?
thanks!
so, i'm trying to set the default value of the textarea as the data and formatting that was posted originally.
however, the formatting is lost when the editor loads the same data it posted originally:
data received from original form via POST:
<p>put some data in</p>
<p style=\"text-align: right;\">with some formatting</p>
<p style=\"text-align: center;\">does it work?</p>'
same data POST'd back to page so it can be added as default value
<form method='post' action='/project/submit_final.php'>
<input type='hidden' name='hidden' value='<p>put some data in</p>
<p style=\"text-align: right;\">with some formatting</p>
<p style=\"text-align: center;\">does it work?</p>'>
<input type='submit' value='Back to Edit>
</form>
fckeditor with default value filled:
<input type="hidden" id="FCKeditor1" name="FCKeditor1" value="<p>put some data in</p>
<p style=\"text-align: right;\">with some formatting</p>
<p style=\"text-align: center;\">does it work?</p>" style="display:none" />
if you hit source with the data in, this is what is printed:
<p>put some data in</p>
<p style="">with some formatting</p>
<p style="">does it work?</p>
--the style="" tag is messed up.
any ideas?
thanks!

Re: setting default value tag for editor
since i'm using php and the get_magic_quotes_gpc() is set, and since the <input> hidden already had slashes added, they had to be removed twice (instead of only once) when the edit page is loaded up again.
slashes upon slashes gets damn confusing!
thanks anyway.