I get this error in my PHP script:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Any help is appreciated.
Here is the code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Any help is appreciated.
Here is the code:
<?php
if (isset($_POST['f_name']) && (isset($_POST['l_name'])))
{
$Fname = addslashes($_POST['f_name']);
$Lname = addslahses($_POST['l_name']);
$Age = addslashes($_POST['age']);
$Avg = addslashes($_POST['avg']);
$NewBowler = "$Lname, $Fname, $Age, $Avg\n";
$BowlerFile = "Bowler.txt";
if (file_put_contents($BowlerFile, $NewBowler, FILE_APPEND) > 0)
echo "<p>stripslashes($_POST['f_name']) + stripslahses($_POST['l_name']) 'Has been registered to the league!'</p>\n"; //Here is the error!!
else
echo "<p> Registration error!</p>\n";
else
echo "<p>To register for the league, enter the information below and click register.</p>\n";
}
?>