Re: Script invocation similar to ASP <%= %>
| From: | elias | Date: | Sat, 05 May 2001 16:43:50 +0000 |
| Subject: | Re: Script invocation similar to ASP <%= %> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51507@lists.php.net to get a copy of this message | ||
I believe you just didn' try it:
<?
$PAGE_TITLE = "Short PHP tags, ASP like!";
?>
<html>
<head>
<title> <%=$PAGE_TITLE%> </title>
</head>
...
</html>
-elias
www.eassoft.cjb.net
""Bjoern Werkmann"" <Bjoern@Werkmann-Net.de> wrote in message
news:9cuuc9$9av$1@toye.p.sourceforge.net...
> Hi there,
>
> pedantic as it might seem, ..., but is there a way to implement the
> following ASP snippet in PHP
>
> <%
> Dim PAGE_TITLE
> PAGE_TITLE = "My Page"
> %>
> <html>
> <head>
> <title> <%=PAGE_TITLE%> </title>
> </head>
>
> ...
> </html>
>
> Especially important is the use of '<%='. I'd like to get rid of the echo
> in '<?php echo $PAGE_TITLE?>'.
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>