为什么我在解析会话变量时会出现此解析错误?

时间:2013-02-17 02:48:50

标签: php

解析错误:语法错误,意外'。'在第3行的/hsphere/local/home/teoti0/daleleeplumbing.com/Bryan/RegnDisplay.php

代码如下:

<?PHP
session_start(); //starts session
    echo "Name: " . $_SESSION['name']; . "<br />"; 
    echo "Email: " . $_SESSION['Email']; . "<br />";  
    echo "Password: " . $_SESSION['Password']; . "<br />"; 
    echo "Confirmed Password: " . $_SESSION['Password_Confirm']; .""; 
?>

1 个答案:

答案 0 :(得分:1)

错误的分号。

echo "Name: " . $_SESSION['name'] . "<br />";

而不是

echo "Name: " . $_SESSION['name']; . "<br />";