-2

    //If the user has submitted the form
    if (!isset($_POST['Submit']) || ($_POST['Submit'] != 'Register')){
        //protect the posted value then store them to variables
        $username=($_POST['username'])
        $password=($_POST['password'])
        //Check if the username or password boxes were not filled in

我似乎无法修复我遇到的这个错误?ErrorException [解析错误]:语法错误,意外的'$password'(T_VARIABLE)

4

2 回答 2

1

您在分配后缺少分号

    $username=($_POST['username']);
    $password=($_POST['password']);
于 2013-05-26T06:49:00.453 回答
1

尝试这个

//If the user has submitted the form
    if (!isset($_POST['Submit']) && ($_POST['Submit'] != 'Register')){
        //protect the posted value then store them to variables
        $username=($_POST['username']);
        $password=($_POST['password']);
        //Check if the username or password boxes were not filled in
于 2013-05-26T06:51:43.103 回答