error de sintaxis, T_GOTO inesperado, esperando T_STRING
Moví mi sitio web a otro host. La versión anterior de php es 5.2 y ahora es 5.3 Cuando inicio sesión en mi sitio web, muestra el error:
Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in /xx/xx/xx/xx on line xx
Siguiendo es el código, la primera línea es la línea de error:
function goto($URL= "Back",$Target="self") //the error line
{
if ($URL == "Back")
{
echo "<HTML>\n<HEAD>\n<TITLE> untitle </TITLE>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$this -> Charset}\">\n</HEAD>\n<BODY>\n";
echo "<Script Language=\"Javascript\">history.go(-1)</Script>";
echo "\n</body></html>";
}
elseif
¿Cómo debo cambiar mi sintaxis? ¡Muchas gracias