Jump to content

[SOLVED] Not sure why this error is happening...


Recommended Posts

Hey, I tried my script on two servers, it's just a simple email script..so I don't know why it's messing up, this is the error:

Error 500 - Internal server error

 

An internal server error has occured!

Please try again later.

 

this is the code:

<?php
import_request_variables('pg');
if ($send) {
	if ($name && $email) {
		$body = "Name: $name \r\n";
		$body .= "E-mail: $email";
		$subject = "New Core Value Entry";
		//$sendto = "someone";
		mail("someone@somewhere.com",$subject,$body,"From: $name");
		header("Location: question01.html");
		exit(0);
	}else {
		header("Location: register.php");
		exit(0);
	}
}
?>

 

Thanks in advanced

If this is a production server - check the log files (apache i assume) for the exact error - if its a non production server turn on error reporting in php.ini - so you can see a description of the error.

 

HTH

Dave

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.