Log in

View Full Version : Making a form without using PHP



Rob
01-05-2006, 12:03 PM
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.

<%

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



Dim name, email, message

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:



<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

Luckyrare
01-05-2006, 12:05 PM
Isnt ASP for windows servers only?

Tomm
01-05-2006, 12:06 PM
Isnt ASP for windows servers only?

No you can get a extension for apache.

Also whats the error?

Rob
01-05-2006, 12:10 PM
The error is:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/formtest.asp, line 21

800401f3

Tomm
01-05-2006, 12:17 PM
Are you sure you have setup the SMTP server ok?

Rob
01-05-2006, 12:19 PM
Huh? Sorry, I have no clue. I'm just uploading the files to the hosting.

ClubTime
01-05-2006, 12:20 PM
i suggest you get a new host

Sygon.
01-05-2006, 12:31 PM
Good old asp, if i could help i would but sorry i cant =[

nets
01-05-2006, 01:11 PM
http://support.microsoft.com/kb/q188289/

Want to hide these adverts? Register an account for free!