Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Html format and ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Html format and ASP

 Post Reply Post Reply
Author
chris@artwebs.c View Drop Down
Newbie
Newbie


Joined: 05 March 2003
Location: United Kingdom
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote chris@artwebs.c Quote  Post ReplyReply Direct Link To This Post Topic: Html format and ASP
    Posted: 05 March 2003 at 8:15am

I have a site where users can post Jokes to the site.

I use an access database to store the jokes. I would like users to be able to format the jokes eg include bold tags, italic, add emotions..... just like the form used to submit topics to this forum.

Any pointers of how to do this would be most welcome.

Thanks

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2003 at 8:18am
Use codes then convert the codes, this way you have control over the input, allowing HTML to be directly input by a user leaves you wide open to malicious code.
Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2003 at 8:25am

Go here and download it. Then you just ad a few bits of code near the textarea and you got yourself a great HTML editor similar to MSWord.

Cristian Banu
Soft 4 web
Back to Top
chris@artwebs.c View Drop Down
Newbie
Newbie


Joined: 05 March 2003
Location: United Kingdom
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote chris@artwebs.c Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2003 at 9:05am

Thanks zaboss for the tips.

-boRg- Thanks for the warning.

Not quite sure what you mean by "Use codes then convert the codes"

How do I stop users adding HTML or ASP code into a text field?

Is there a simple snippet of code I could add to my page to stop this.

Ps. this is a fine forum..one of the best I have seen...very quick replys

 

 

Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2003 at 9:18am
Wel, you could create some JScript functions to remove/modify the unwanted tags. But, for you, HTMLArea is just the perfect tool. You only need to add 2 lines of java script near your text area. It has enough protection to prevent an atack. But, on the internet you are nevere sure . But that does not mean you just seat down and do nothing about security issues on the ground that your site could be hacked anyway so, why bother.
Cristian Banu
Soft 4 web
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2003 at 9:36am
i agree with HTMLArea (htmlarea.com), totally excellent piece of software, and there's TONS of help within their message boards there
Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.