SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I remove default form field text in the cdosys file?

    My website uses a simple cdosys file to let visitors send email. Here's the problem... In the Email field I put the word "optional" and CSS styled it gray, plus a JavaScript deletes that word if they click in the field. I have the same setup in one of the two textarea fields.

    If the user doesn't click the field and sends me email, I get the default text for both fields, and the second one is a bit lengthy.

    Is there a way in cdosys to have it do a text-string match and delete what gets sent to the mail server if it's the default form field text?

  2. #2
    SitePoint Addict itHighway's Avatar
    Join Date
    Jan 2008
    Location
    GUJ
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CDOSYS component is designed to send only emails, there is no builtin function in it that work like that.

    You can apply condition in ASP script to remove/replace unwanted string.

  3. #3
    SitePoint Member
    Join Date
    Feb 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you point me to a onlinr resource where I could learn to apply a condition in an ASP script?


Tags for this Thread

Bookmarks

Posting Permissions

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