Jump to content

Want to implement a preview


xux

Recommended Posts

Yes you can Just concatenate the header, body and footer and display it in the textarea of the editor.
A very short sample of how this works in the Wizzywig editor:
[code]   // just get your header, footer and body text from where you stored it
   $header = .....
   $footer = .....
   $body   = .....
   $formtext = $header . $body . $footer;
?>
   <form action="adm_updt_formtext.php" method="post">
     Click this button to do whatever you want&nbsp;&nbsp;<input type=submit value="Do it ...."><p> </p>
<input type="hidden" name="formact" value="u" />
     <textarea id="formtext" name="formtext" style="width:650px; height:500px"> <?=$formtext;?>
     </textarea>
   </form></body></html>[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.