Hi there,
Im new to this website but I have a big problem with fasthosts. I run code to send an email for a hairdressers and it runs on every other server I have tested except fasthosts. Ive even tried their own code and it doesnt work.
this is the message i get:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Im a front end designer so am not hard core with code (although I do know a bit), i know that 500 error means there is no file there yet when I check the ftp connection the file is there. Just wondering if anyone can help, I will post my code as follows:
HTML:
<form id="contact_form" class="content_form" method="post" action="contactconfirmation.asp">
<p><label class="name_label" for="form_name">Your name*</label>
<input type="text" name="name" id='form_name' class="textbox" /></p>
<p><label class="email_label" for="form_email">Your e-mail*</label>
<input type="text" name="email" id='form_email' class="textbox"/></p>
<p> <label class="message_label" for="form_message">Your message*</label> <textarea name="message" id='form_message' rows="6" cols="25" class="textbox"></textarea> </p>
<p><input type="button" name="submit" id="form_submit" value="Submit" class="button submit_button" /></p>
<!-- hidden input for basic spam protection -->
<div class='hide'>
<label for='spamCheck'>Do not fill out this field</label>
<input id="spamCheck" name='spam_check' type='text' value='' />
</div>
<span id="loader"></span>
<!-- This div will be shown if mail was sent successfully -->
<div class="hide success">
<p>Thanks! Your email has been sent.</p>
</div>
</form>
ASP:
<%
Set Mailer = CreateObject("CDO.Message")
Mailer.From= "info@blondeonblondebolton.com"
Mailer.to = "info@blondeonblondebolton.com;"
Mailer.Subject = "Enquiry for hair salon website"
if request("action") = "Submit" then
HTML = HTML & "<h1>Query from BOB Website</h1>"
HTML = HTML &"<table>"
HTML = HTML & ins("Name","name")
HTML = HTML & ins("Email","email")
HTML = HTML & ins("Message","message")
if instr(request("Message"),"http")>0 then
response.write "<h1>An Error Occured - No Links in Message Allowed</h1>r"
response.end
end if
HTML = HTML &"</table>"
Mailer.HTMLBody = HTML
Mailer.send
end if
function ins(field,data)
theField = request(data)
ins = "<tr><td>"&field&"</td><td>"&thefield&"</td></tr>"
end function
%>
I still get the error and I cant figure it out? any help would be great.
Robbie


Reply With Quote

Bookmarks