-5

我正在尝试创建一个注册和登录系统,但在我使用的这段代码中出现语法错误

header('Location: Profile.php');

在上下文中,此代码的使用如下:

/* send email to new Customer */
$emess = "You have sucessfully registered. ";
$emess .= "Your new username and password are:  ";
$emess .= "\n\n\t$loginName\n\t";
$emess .= "$password\n\n";
$emess .= "We appreciate your interest. \n\n";
$emess .= "If you have any questions or problems, ";
$emess .= " email service@ourstore.com";
$subj = "Your new customer registration"
# $mailsend=mail("$email","$subj","$emess");
header('Location: Profile.php');

在我学习 PHP 时,任何帮助都将不胜感激。

4

2 回答 2

10

您缺少一个分号:

$subj = "Your new customer registration";
于 2012-08-17T13:12:56.533 回答
2

as mentioned above, you are missing a semicolon

when you have an internal server error you can look for the error in the log file,

or enabling errors printing on screen (DONT enable it on production) with

 ini_set("display_errors",true);
 error_reporting(E_ALL);
于 2012-08-17T13:18:16.397 回答