Jump to content

Can anybody look @ my script and tell me why my contact form isnt working pleas?


kellyc

Recommended Posts

Hi There,

 

Im trying to create a simple contact form which will email me the data but everytime i fill it in and hit send, i get a '500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.' message. However, the data does reach my inbox!

Does anyone know what could be wrong?

I contacted my hosting company but they tell me it must be a problem with my coding.

I have attached screen shots of my html feedback form and also the php file.

 

[attachment deleted by admin]

If I was in your place, I will use the basic of all

I will use...

 

if(mail($emaily, $subject, $message, "From: $SITE_EMAIL")){
print"<FONT style=\"font-size:12px\" color=\"#000000\" face=\"Arial\">Sent!</FONT>";
}else{
print"<FONT style=\"font-size:12px\" color=\"#000000\" face=\"Arial\">Not sent!</FONT>";
}

 

Because the Submit form looks ok to me

I think the handling code may be the problem

Try this simple code which I gave you and see if it works

If it doesnt work, perhaps your server does not send emails, or email companies block the emails coming from your server

You need to keep trying, I had several problems like that before

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.