[thelist] PHP and Perl
Anthony Baratta
Anthony at Baratta.com
Thu Dec 7 13:11:17 CST 2000
At 10:03 AM 12/7/2000, you wrote:
>So that it looks that it does this:
>
> $text = "<?
> $id = $HTTP_COOKIE_VARS["id"];
> if (!isset($id))
> {
> print "<center>";
> print "Authorization Failed!<p>";
> print "Click here to <a
>href=http://www.dagl.net/members/login.html>login</a>";
> exit;
> };
>?>
>\n";
Here's the angle I would approach:
One: Use a PHP formated include file for this code snippet.
Two: If you want to hard code the whole thing...
$text .= qq[<?
\$id = \$HTTP_COOKIE_VARS\["id"\];
if (!isset($id))
{
print "<center>";
print "Authorization Failed!<p>";
print "Click here to <a
href="http://www.dagl.net/members/login.html">login</a>";
exit;
};
?>\n];
----
Anthony Baratta
President
Keyboard Jockeys
More information about the thelist
mailing list