KristopherS Posted November 27, 2008 Share Posted November 27, 2008 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 More sharing options...
akitchin Posted November 27, 2008 Share Posted November 27, 2008 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. Link to comment https://forums.phpfreaks.com/topic/134556-solved-unexpected-t_variable/#findComment-700629 Share on other sites More sharing options...
KristopherS Posted November 27, 2008 Author Share Posted November 27, 2008 Got it! Gotta add a ; on the end! thanks for pointing that out. Link to comment https://forums.phpfreaks.com/topic/134556-solved-unexpected-t_variable/#findComment-700636 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.