Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2004
    Location
    Derby
    Posts
    790
    Tokens
    1,148

    Latest Awards:

    Default Making a form without using PHP

    Hey,
    I've made a form using PHP and HTML. It works on my hosting, but it's for my Dads site. Now, my Dad is no computer genious, so he just bought some hosting from a man who goes in his shop.The hosting does not:
    • Have cPanel
    • Support PHP

    Yeah, crap hosting. So I tried to make the form using ASP. Here is the ASP code I'm using. It says there's an error on line 21, I can't see what's wrong with it though.
    PHP Code:
    <%

    if 
    Request.Querystring("isSubmitted") = "yes" then



    Dim name
    emailmessage

    Dim objCDO



    name 
    Request.Querystring("Name")

    email Request.Querystring("E-Mail")

    message Request.QueryString("Message")



    Set objCDO Server.CreateObject("CDONTS.NewMail")


    objCDO.To "MY Real e-mail goes here"

    objCDO.Bcc ""

    objCDO.Subject "Zebra Muzik"

    objCDO.Body "Name: " name " " email " " message " "



    objCDO.BodyFormat 1

    objCDO
    .MailFormat 1



    objCDO
    .Send



    ConfirmMsg 
    "Thanks for your e-mail!"

    end if

    %> 
    and here is the HTML code I'm using for the form:

    HTML Code:
    <form action="formtest.asp" method="get" name="Input_Form">
    
    Name:<br>
        
    <input type="text" size="30"
    
    maxlength="50" name="name">
        
    <br>
        
    E-Mail:<br>
        
    <input type="text" size="30"
    
    maxlength="50" name="email">
        
    <br>
        
    Message:<br>
    <textarea name="message"> </textarea>
        
    <br>
        
    <input type="hidden" name="isSubmitted" value="yes">
        
    <input type="submit" value="Send">
        
    </form>
    All help is greatly appreciated, and if you know of any other ways, I would be very thankful.

    Many thanks,
    Rob
    Last edited by Rob; 01-05-2006 at 12:18 PM.



    People who I respect

    RichardKnox | Nets | JoeComins | Raremandan | Embrace | Css | Encryptions!

    I love Christmas too much - Im looking forward to it already!

  2. #2
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Isnt ASP for windows servers only?

  3. #3
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luckyrare
    Isnt ASP for windows servers only?
    No you can get a extension for apache.

    Also whats the error?

  4. #4
    Join Date
    Oct 2004
    Location
    Derby
    Posts
    790
    Tokens
    1,148

    Latest Awards:

    Default

    The error is:

    Server object error 'ASP 0177 : 800401f3'

    Server.CreateObject Failed

    /formtest.asp, line 21

    800401f3



    People who I respect

    RichardKnox | Nets | JoeComins | Raremandan | Embrace | Css | Encryptions!

    I love Christmas too much - Im looking forward to it already!

  5. #5
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Are you sure you have setup the SMTP server ok?

  6. #6
    Join Date
    Oct 2004
    Location
    Derby
    Posts
    790
    Tokens
    1,148

    Latest Awards:

    Default

    Huh? Sorry, I have no clue. I'm just uploading the files to the hosting.



    People who I respect

    RichardKnox | Nets | JoeComins | Raremandan | Embrace | Css | Encryptions!

    I love Christmas too much - Im looking forward to it already!

  7. #7
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    i suggest you get a new host
    Last edited by ClubTime; 01-05-2006 at 12:21 PM.

  8. #8
    Join Date
    Feb 2006
    Location
    Coventry
    Posts
    2,096
    Tokens
    0

    Latest Awards:

    Default

    Good old asp, if i could help i would but sorry i cant =[

  9. #9
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:


Posting Permissions

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