Hey everyone! I have a probably simple question, but the answer has been eluding me for a little while now. I have FCKeditor set up to automatically convert the html into a word document. However, when I tried to add a text box for the user to put in their own title I realized I wasn't quite sure how to get this from POST on the post-editor page. Here is what I've been using to grab the content from the editor:
What this does is just get everything that was put into the editor and then saves it as an html document using the current server time. While I do know how to get individual variables from POST, but I'm not too familiar with how exactly this editor sends everything over. On the editor page I just added a new text box like:
Is there a way I could get that specific variable from all of this so that I can put appropriate titles on the documents that are being created?
Thanks!
~Scott
$postArray = &$_POST;
foreach ($postArray as $sForm => $value)
{
$myFile = "docs/" . $time . ".html";
$fh = fopen($myFile, 'w');
fwrite($fh, $value);
fclose($fh);*/
}What this does is just get everything that was put into the editor and then saves it as an html document using the current server time. While I do know how to get individual variables from POST, but I'm not too familiar with how exactly this editor sends everything over. On the editor page I just added a new text box like:
Title of Document: <input type="text" name="docname">
Is there a way I could get that specific variable from all of this so that I can put appropriate titles on the documents that are being created?
Thanks!
~Scott

Re: Getting another POST variable from the editor page
if ($sForm == docname) { do something else; } else { fwrite($fh, $value); }or something like that.