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
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