Re: How to use ph to set meta tags ?
| From: | Curt Zirzow | Date: | Tue, 15 Jul 2003 19:02:17 +0000 |
| Subject: | Re: How to use ph to set meta tags ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155302@lists.php.net to get a copy of this message | ||
Daniel Szasz <danysz@yahoo.com> wrote:
> Hello
>
> I wish to create be able to put in the meta tags value from functions.
> How can be done ?
>
> Here is part of the code :
>
>
> <?php
> function mAuthor() {
> $Author = "Daniel Szasz";
> return $Author;
> };
> ?>
> [...]
> <HTML>
> <HEAD>
>
> <META http-equiv=Content-Type content="text/html; charset=windows-1252">
>
> <META NAME="mAuthor" CONTENT= <? mAuthor() ?> >
You might also want to make sure that it is quoted:
<META NAME="mAuthor" CONTENT="<?echo mAuthor() ?>" >
Curt
--