Posted by Ron Barnett on 09/05/07 18:04
"Blue_Hatter" <Bluehatchet@Gmail.com> wrote in message
news:fblk10$ovb$1@aioe.org...
>I know a thing or two about HTML writing, what I want to know is how to get
>the simple PHP scripts I am writing to match the HTML formatting I want on
>my Page?
PHP can output whatever you want it to :
<?php
echo "<a href='www.mydomain.com'>Click here to visit my site</a>";
?>
is pretty much the same as
<a href='www.mydomain.com'>Click here to visit my site</a>
and you can add variables :
<?php
$fred = 'Click here to visit my site;
echo "<a href='www.mydomain.com'>$fred</a>";
?>
because the variable $fred is inside double quotes it will get expanded to
its string value on output.
If you are looking for more powerful formatting features try phpclasses :
--
http://ronbarnett.users.phpclasses.org/
or the pear extensions on PHP.net
If you do understand HTML using PHP to tweak it and make pages dynamic is
easy.
Cheers
Ron
Navigation:
[Reply to this message]
|