use of htmlencode with access database

Discussion in 'HTML' started by diablo, Jun 26, 2005.

  1. diablo

    diablo Guest

    hi

    I was told that if i am storing html and user input into a Access 2000
    database i need to use

    dbRecordset.fields("comments") =
    Server.HTMLEncode(user_input_from_textarea_which_may_include_html)

    Is this so? and also do i need to do anything to the retrieved text so that
    i can

    <body><%=dbRecordset.fields("comments")%></body>

    I believe i need to be aware of such things as quotes and apostraphes

    Thanks for any help

    Diablo
     
    diablo, Jun 26, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michal Raatz

    DataGrid and Htmlencode

    Michal Raatz, Jul 29, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    496
    Michal Raatz
    Jul 29, 2003
  2. Makarand
    Replies:
    0
    Views:
    1,045
    Makarand
    Nov 6, 2003
  3. Andrea Williams

    Problem with C# Class and Server.HTMLEncode

    Andrea Williams, Jan 27, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    22,312
    Michael Earls
    Jan 27, 2004
  4. Hraklhs

    Always use Server.HTMLEncode?

    Hraklhs, Jan 7, 2004, in forum: ASP General
    Replies:
    0
    Views:
    153
    Hraklhs
    Jan 7, 2004
  5. diablo

    why use htmlencode

    diablo, Jul 7, 2005, in forum: ASP General
    Replies:
    4
    Views:
    261
    diablo
    Jul 8, 2005
Loading...

Share This Page