RE: [PHP] How to use ph to set meta tags ?
| From: | Mike Brum | Date: | Tue, 15 Jul 2003 18:12:43 +0000 |
| Subject: | RE: [PHP] How to use ph to set meta tags ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155299@lists.php.net to get a copy of this message | ||
You're close but instead of <? mAuthor() ?> try
<?php print mAuthor(); ?>
That will print the return value of your function - which by example is
"Daniel Szasz".
-M
-----Original Message-----
From: Daniel Szasz [mailto:danysz@yahoo.com]
Sent: Tuesday, July 15, 2003 3:07 PM
To: php-general@lists.php.net
Subject: [PHP] How to use ph to set meta tags ?
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() ?> >
</HEAD>
</HTML>
Thanks a lot for the help
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php