Jump to content

[SOLVED] Unexpected T_Variable


KristopherS

Recommended Posts

Can ANYONE figure out why I keep getting Parse error: syntax error, unexpected T_VARIABLE in /home/gomatt/public_html/wowtest/game_accSelection.php on line 71?

 

Ctrl+F - Find  $HTML .= "<form method='post' action='http://mattsservers.quantum-servers.com/wowtest/game_acc3.php'>"; 

 

Thats the line thats wrong... apparently.

 

(I only began learning PhP about 18 hours ago, so sorry if this is horribly simple to fix)

 

	$MODE = htmlspecialchars(preg_replace($search, '', $_GET['m']), ENT_QUOTES);
if (($MODE == null || !isset($MODE)) && $AllowReg)
{
	$HTML .= "<fieldset>";
	$HTML .= "<legend> Create Account </legend>";
	if ($ShowWarning)
	{
		$HTML .= "<fieldset><legend></legend>";
		$HTML .= "</fieldset>";
	}
	$HTML .= "<br />";
	$HTML .= "<form method='post' action='http://mattsservers.quantum-servers.com/wowtest/game_acc2.php'>";
	$HTML .= "<input type='submit' name='Submit' value='Register Classic' />";
	$HTML .= "</form>"
	$HTML .= "<form method='post' action='http://mattsservers.quantum-servers.com/wowtest/game_acc3.php'>";		$HTML .= "</form>"
	$HTML .= "<input type='submit' name='Submit' value='Register TBC' />";
	$HTML .= "<form method='post' action='http://mattsservers.quantum-servers.com/wowtest/game_acc4.php'>";
	$HTML .= "</form>"
	$HTML .= "<input type='submit' name='Submit' value='Register WOTLK' />";
	$HTML .= "<table cellspacing = '0' cellpadding = '0' border = '0'>";
	$HTML .= "</table>";
	$HTML .= "</form>";
	$HTML .= "</fieldset>";
} else if ($MODE == 'submit' && $AllowReg)
$HTML .= "</body></html>";

echo $HTML;

?>

Link to comment
https://forums.phpfreaks.com/topic/134556-solved-unexpected-t_variable/
Share on other sites

does something about this line look funny to you?

 

      $HTML .= "</form>"

 

hint: that's the line directly above line 71.  if the error is on line 71, that most likely means the ACTUAL error (when something is unexpected) is one character before that line.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.