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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.