Help Displaying email address in ASP form results

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poohbah
    New Member
    • May 2007
    • 2

    Help Displaying email address in ASP form results

    Hi Everyone - I am very new to scripting. I got a formmail.asp file off the internet to set up a simple form on a contact us page, The problem is that the email addresses in the results emails are displayed without the @ sign, and instead a %40 - I know I need to add something to either the HTML form or the formmail.asp file but I am not sure what and not sure where. I have pasted the form code below, if that helps at all.

    the field with the problem is VisitorEmail

    thanks
    [html]
    <form name="contactfo rm" method="get" action="formmai l.asp">
    <input type=hidden name="recipient " value="xxx@xxx. xxx">
    <input type=hidden name="subject" value="Request for More Information">
    <input type=hidden name="redirect" value="http://www.fabfix.ca/ThanksPage.html ">
    <div style="margin-left: 24px; margin-top: 12px; margin-right: 15px;" class="b">
    <div align="center"> <img src="images/4_w2b.gif" alt="" width="222" height="36" border="0" style="margin-bottom: 16px;"><br>
    <input name="VisitorNa me" type="text" class="b1" id="VisitorName " style="width: 289px; height: 25px;" value=" your name: ">
    <br>
    <br style="line-height: 1px;">
    <input name="VisitorEm ail" type="text" class="b1" id="VisitorEmai l" style="width: 289px; height: 25px;"value=" e-mail: ">
    <br>
    <br style="line-height: 1px;">
    <textarea name="VisitorCo mment" cols="35" rows="35" class="b1" id="VisitorComm ent" style="width: 289px; height: 96px; overflow: hidden;"> &nbsp;comments: </textarea>
    <br>
    <br style="line-height: 7px;">
    <input type="submit" class="green" value="Submit">
    <input name="Reset" type="reset" class="green" id="Reset" value="Reset">
    </div>
    </div>
    </form>[/html]
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Poobah,

    The change is definitely being made in the scripting in formmail.asp. Could you show that code?

    Jared

    Comment

    • poohbah
      New Member
      • May 2007
      • 2

      #3
      I Just Figured it out.

      I added:

      strbody = replace(strbody , "%40","@")

      to the long list of special characters in the formmail.asp file.
      Thanks for taking the time anyhow.

      SUE

      Comment

      Working...