<head>
<title>Login</title>
<?php
if($verhalten == 1)
{
/* The important line */
?>
<meta http-equiv="refresh" content="3; URL=seite2.php"/>
<?php
}
?>
</head>
...
This is my code in general. The problem is that PHP is telling me that there is an unexpected '<' in line 38 (the line that i marked) even though the line is completly empty. Ive read through the other questions, but none of them seem to be helping me. Its prolly just a dumb mistake, but it would be quite nice of you to tell me where it is, because i have no idea where it could be.
I think this is what you are trying to do. This should't throw any errors.
<head>
<title>Login</title>
<?php
if($verhalten == 1)
{
echo '<meta http-equiv="refresh" content="3; URL=seite2.php"/>';
}
?>
</head>