In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hello all,
>
> How can i force a transfer to another php page from an if statement?
>
> I have been trying:
>
> if (condition){
>
> echo "<A HREF=3D"www.link.com">Link</A>";
echo '<A HREF="www.link.com">Link</A>';
the parser will get confused with all the " Alternatively you can escape
" in a double quoted string thus
echo "<A HREF=\"www.link.com\">Link</A>";
>
> }
> else {
>
> something else
> }
>
> without much luck, i keep getting parse errors. Thanks for anyhelp in
> advance!
But probably you really need header() to do an automatic redirect. See
the manual for an example.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php