Simple problem with ASP form, but I dont know any ASP :(

Discussion in 'C#' started by Clear Presence Media, Apr 2, 2008.

  1. #1
    Hello

    Im trying to get a form working on my website, but when it is submitted it simply redirects to a page showing the code of the asp ...command thing

    www.gomeetri.com/goldtest

    If anybody could please tell me why it is doing this and how to fix it, you would be a lifesaver...and ill give you rep ;)

    Thanks!
     
    Clear Presence Media, Apr 2, 2008 IP
  2. Jhar

    Jhar Peon

    Messages:
    318
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First of all that is a very old school asp bit of code you have in the mail form. The likely issue is that your server does not support CDONTS. CDONTS was replaced by CDOSYS in Windows Server 2003. Check out the following link for instructions on how to modify your current code to work with CDOSYS (assuming you are using a Windows 2003 Server).

    http://www.sitepoint.com/article/asp-net-server-winxp-pro
     
    Jhar, Apr 3, 2008 IP
  3. salman4raza

    salman4raza Peon

    Messages:
    373
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can use request("lastforminput") to collect form information and then use it where you wish it to be used.
     
    salman4raza, Apr 24, 2008 IP
  4. dgxshiny

    dgxshiny Greenhorn

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #4
    It looks like your server is running Unix and Apache which does not naively support ASP.
     
    dgxshiny, Apr 24, 2008 IP
  5. ASPMachine

    ASPMachine Peon

    Messages:
    723
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Your script has no problem. Some server has not permission to run ASP script on any sub folder. If your "_vti_script" folder is on the main folder or root directory then simply place your contact.asp on http://www.gomeetri.com/contact.asp instead of http://www.gomeetri.com/goldtest/contact.asp.

    I hope your contact form will work properly.
     
    ASPMachine, Apr 26, 2008 IP
  6. dylanj

    dylanj Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Looks like your server doesn't support ASP VBScript...
     
    dylanj, May 16, 2008 IP