You are here: Re: Just Learning PHP « PHP Language « IT news, forums, messages
Re: Just Learning PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация