Replacing User Input With HTML

Results 1 to 2 of 2

Thread: Replacing User Input With HTML

  1. #1
    D. Lowe Guest

    Default Replacing User Input With HTML

    Scenario: I have a user that responds to a question by filling out a single form box (textarea). I would like to process this input to determine if there are hotlinks to other parts of the site (i.e., URL&#039s to other pages, email addrs., etc.) My users shouldn&#039t need to know how to input and "a href" tag. I plan to make this a reusable function. Any insight? Much Appreciated!

  2. #2
    KPW Guest

    Default RE: Replacing User Input With HTML

    Hi,<BR><BR>For e-mail addresses, I think you could search for "@", then find the first space before and the first space after the "@" using InStrRev and InStr. The string of text in between these spaces should be an e-mail address.<BR><BR>You could probably do a similar search for .htm or .html.<BR><BR>HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts