PHP头语法

-4 php

我正在尝试建立一个注册和登录系统,我在这个代码中遇到语法错误

header('Location: Profile.php');
Run Code Online (Sandbox Code Playgroud)

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

/* 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');
Run Code Online (Sandbox Code Playgroud)

我学习PHP时会非常感激任何帮助.

Yan*_*erk 10

你错过了一个分号:

$subj = "Your new customer registration";
Run Code Online (Sandbox Code Playgroud)