-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

これを試して

//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 に答える
1

割り当ての後にセミコロンがありません

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