SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Aug 2001
    Location
    Toronto
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP - Comment/Help Needed - Urgent!

    Hi,

    I have a FrontPage built HTML Form page for collecting users' info - "Name", "Comment" and "CommentType". I name my Form properly. I coded my ASP page to direct users' info to my E-mail address as shown below.

    I am using a remote host for my web site, they support ASP. When I tested it, I found a very different page from Internet Explorer (IE)- /__vti_bin/shtml.exe/contact.htm

    I have no clue the source of shtml.exe
    I pointed my HTML page to my ASP page. <form method="POST" action=" " http://www.philosophyme.com/contact.asp" ">
    But it shows IE generated page
    And I donot see any email.
    ===============================================
    <%@ Language = VBScript%>
    <%
    Set TheMail = Server.CreateObject ("CDONTS.NewMail")
    TheMessage = "From: " & Request.Form("Name") & vbnewline &
    Request.Form( "Comment " )
    if Request.Form ( "CommentType" ) = "Sales" then
    TheMail.Send Request.Form
    ( "Email" ), "sales@philosophyMe.com" , Request.Form ( "CommentType" ) , TheMessage
    elseif Request.Form ( "CommentType") = "Webmaster" then
    TheMail.Send Request.Form
    ( "Email" ), "web@philosophyMe.com", Request.Form ( "CommentType" ) , TheMessage
    else
    TheMail.Send Request.Form
    ( "Email" ), "albert@philosophyme.com", Request.Form ( "CommentType" ) , TheMessage
    end if
    Set TheMail = Nothing
    %>
    ==========================================
    Thanks for your reply.

    Albert
    signature

  2. #2
    SitePoint Enthusiast The Criminologist's Avatar
    Join Date
    Jun 2001
    Location
    Newtown, PA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im kinda confused about what your problem is...

    I cleaned up the code you gave me and it looks like this, right?

    Code:
    <%@ Language = VBScript%>
    <% 
    Set
    TheMail = Server.CreateObject ("CDONTS.NewMail") 
    TheMessage = "From: " & Request.Form("Name") & vbnewline & Request.Form("Comment")
    
    IF Request.Form ("CommentType") = "Sales" THEN
    	TheMail.Send Request.Form ("Email"), "sales@philosophyMe.com", Request.Form("CommentType"), TheMessage 
    ELSEIF Request.Form ("CommentType") = "Webmaster" THEN
    	TheMail.Send Request.Form ("Email"), "web@philosophyMe.com", Request.Form("CommentType"), TheMessage
    ELSE
    	TheMail.Send Request.Form("Email"), "albert@philosophyme.com", Request.Form("CommentType"), TheMessage 
    END IF
    
    Set
    TheMail = Nothing 
    %>
    This is the code on your ASP page that your form submits to.

    As far as I can see, the code looks clean and should work.

    Where is the problem coming in? Is the page that you are requesting being switched with another page? Are you able to successfully pull up your asp page if you were to remove the VBscripting from it?
    C:\DOS
    C:\DOS\RUN
    RUN\DOS\RUN
    When all else fails, use Percussive Maintenance!

  3. #3
    SitePoint Member
    Join Date
    Aug 2001
    Location
    Toronto
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Thanks a lot for the response.
    You are right, when I submit the HTML form it does not go to the ASP page, rather it goes to a page auto-generated (I guess!) by IEeplorer (my Browser)! Do you think that the host server might not be set up properly. I am frustrated trying and trying!

    Please provide me with your practical ideas.

    Thanks again.

    Best regards,
    Albert
    signature

  4. #4
    SitePoint Guru
    Join Date
    Dec 2000
    Location
    Karachi, Pakistan
    Posts
    913
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do onething..
    Open the HTML Form page in NotePad and search for action. See what the action tag says.. If it says something like shtml.exe or what ever, remove it and add yourASPfile.asp

    You may also find some more lines below the action tag. Remove those lines too. And if possible, post the HTML Form Page.


    Hope it helps
    36Host.com - $36/year web hosting [affiliates earn 30%]
    * Affordable Small Business Web Hosting since 2003! *
    "500mb space, 10gb bandwith, 50 pop/ftp accounts, php,
    mysql, pre-installed php scripts, 24/7 support & more...."



  5. #5
    SitePoint Member
    Join Date
    Aug 2001
    Location
    Toronto
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    thanks for the reply.
    The NotePad shows the following

    <form method="POST" action=" " http://www.omnitechcaffee.com/contact.asp" ">
    .............

    It does not show anything like
    /__vti_bin/shtml.exe/contact.htm
    But I found the above in the "FOrm Confirmation" NotePad - View Source page after I sent the Form

    Albert
    signature

  6. #6
    SitePoint Wizard wdmny's Avatar
    Join Date
    Jul 2000
    Location
    Here
    Posts
    1,010
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From the "/__vti_bin/", it appears it has something to do with FrontPage or FrontPage extensions. Make sure the html on your form page does not have any WebBot markups. They are in comment tags like <!-- -->, but they mention "WebBot"


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
  •