xux Posted August 24, 2006 Share Posted August 24, 2006 Hello Everybody, I am working on a newsletter app and i need to implement a preview whereby the newsletter can be previewed before sending it.And I want to send the newsletter with a footer and header.I will apperciate any help(quite urgent).Thanks Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted August 24, 2006 Share Posted August 24, 2006 Do you want to send it as plain text or as HTML (meaning do you want the preview in any of those)?And when previewed in plain text, do you want to be able to change it before sending?Ronald 8) Quote Link to comment Share on other sites More sharing options...
xux Posted August 24, 2006 Author Share Posted August 24, 2006 Thanks, I want it in html and should be able to be modified.Thanks for your help xux Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted August 24, 2006 Share Posted August 24, 2006 Best thing would be to read in the html and display it in a textarea box assigned to an editor that can handle HTML tags, such as TinyMce or Whizzywig. Then add a save button and you're ready to send.Ronald :cool: Quote Link to comment Share on other sites More sharing options...
xux Posted August 24, 2006 Author Share Posted August 24, 2006 Thanks, but can I implement my header and footer using this. Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted August 24, 2006 Share Posted August 24, 2006 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 <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] Quote Link to comment Share on other sites More sharing options...
xux Posted August 25, 2006 Author Share Posted August 25, 2006 Thank you very much,let me get down to coding.I will keep you inform,thanks a lot. Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted August 25, 2006 Share Posted August 25, 2006 Since this forum will not let me show JavaScript code in the box, I have sent the complete sample to your private mail address.Ronald 8) Quote Link to comment Share on other sites More sharing options...
xux Posted August 28, 2006 Author Share Posted August 28, 2006 Thanks, I need help again.I want to implement a kind of CMS on a site I have design already.Am trying to implement inserting (which I can do) and deleting (which is being problematic) from the database from web interface.Can you help out?thanks Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted August 28, 2006 Share Posted August 28, 2006 If you can insert data into the db from a webform, what is then the problem with deleting from the db from a webform?Ronald :cool: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.