正直なんでつまづいているのかわからないほど簡単であろうことなのですが、現在PHPの勉強のために『気づけばプロ並み PHP』という書籍をやっています。
その際に
<staff_edit.php>
``<form method="post" action="staff_edit_check.php">
<input type="hidden" name="code" value="<?php print $staff_code;?>">
スタッフ名<br />
<input type="text" name="name" value="<?php print $staff_name;?>" style="width:100px"><br />
パスワードを入力してください。<br />
<input type="password" name="pass" style="width:100px"><br />
パスワードをもう一度入力してください<br />
<input type="password" name="pass2" style="width:100px"><br />
<input type="button" onclick="history.back()" value="戻る">
<input type="submit" value="OK">
このフォームで作ったデータを
<staff_edit_check.php>
$staff_name = $_POST['name']; $staff_pass = $_POST['pass']; $staff_pass2 = $_POST['pass2'];``` で受け取ろうとしています。 しかし `Parse error: syntax error, unexpected '$staff_name' (T_VARIABLE) in /Applications/XAMPP/xamppfiles/htdocs/staff2/staff_edit_check.php on line 10` というエラーが出てきてしまいます。 どうすればよろしいでしょうか?