This may sound like a newbie question and in some ways it is. I need to do a sort of "goto" from one php-block to another in my .php-file, for example like this:
<?
if ($foo=="bar")
goto Label1;
?>
<other html-code here>
<?
Label1:
echo "whatever";
?>
<and a lot of html here>
And I can't use:
if ($foo=="bar")
{
<the html>
} else {
<other html>
}
... unless it's possible to do:
<?
if ($foo=="bar")
{
?>
<and here is the html>
<?
} else {
?>
<and some other html>
<?
}
?>
... which I don't think I can do. Any ideas? The problem is that the html code can't be in the <? ?>-block. If you have another solution, that's fine.
Thanks in advance,
Victor