I'm getting
"Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/a6341481/public_html/response.php on line 34"
when I submit the form of my site. This is the code I have from line 17 to 36:
if (strlen($username) <0)
{
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid username</font></p>");
}
if (strlen($username) >20)
{
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid username</font></p>");
}
if (strlen($username) == 0 )
{
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid username</font></p>");
}
//saving record in a text file
$pfw_file_name = "db.csv";
$pfw_first_raw = "username,boss[]\r\n";
$pfw_values = "$username,$boss[]\r\n";
$pfw_is_first_row = false;
if(!file_exists($pfw_file_name))