我正在尝试创建一个注册和登录系统,但我正在使用的这段代码中出现语法错误
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。
您缺少分号:
$subj = "Your new customer registration";
如上所述
,您缺少分号
当您遇到内部服务器错误时,您可以在日志文件中查找错误,
或启用在屏幕上打印的错误(不要在生产中启用它)
ini_set("display_errors",true);
error_reporting(E_ALL);