By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,441 Members | 996 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,441 IT Pros & Developers. It's quick & easy.

How i can integrate myspell spell checker in smarty.

P: 1
Sample php Code:

Expand|Select|Wrap|Line Numbers
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
  4. <title>PHPSpellCheck Example - Spelling "As You Type" </title>
  5. </head>
  6. <body>
  7. <form id="form1" name="form1" action="">
  8. <textarea name="spellfield" id="spellfield" cols="30" rows="5">spell checker works across all major browsers including IE.</textarea>
  9. <?php
  10. require "../include.php";
  11. $mySpell = new SpellAsYouType();
  12. $mySpell->InstallationPath = "../";
  13. $mySpell->Fields = "ALL";
  14. echo $mySpell->Activate();
  15. ?>
  16. </form>
  17. </body>
  18. </html>
Oct 11 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.