[FX.php List] Re: Cannot get redirects to work

John Moed john at technames.com
Thu Dec 20 16:47:50 MST 2007


You don't have the {} curly braces...

Also, you might need to echo the header statement or break out of PHP for
the HTML and then go back in to PHP after.

As far as I know, you should not use the ; at the end of an if statement. If
you use the ; you will usually get an error message.

It should be:
if(statement) {
Something;
}else{
Something else;
}

If you need to break out of PHP:
<?php if(Statement) { ?>
Html something
<?php } else { ?>
Html something else
<?php } ?>





More information about the FX.php_List mailing list