Using html in php
Moderator: General Moderators
Using html in php
Hello, i m new to this whole php thing. I m just wondering that whether I can put html codes/page in php?
TThanks in advance
TThanks in advance
Very simple... if you choose to write html with php modules in it... all you do is insert
if you prefer (i do) to write all php and have html modular you insert html into strings and you echo them or print them to the browser.
Code: Select all
<? function foo()
{
echo('HI!);
}
?>Code: Select all
//this is a *.php file
$output = '<B>Hello</B>';
echo($output);Thank you, i got it.
Another question...I m using phpnuke and trying to make a new php page with html code inside to display some information..however i wasn't able to change the size or the type of font. My guess is that phpnuke had set a default type of font for all modules/pages already, is there any ways to override it? Or if my guess is wrong, what is the problem?
thanks.
Another question...I m using phpnuke and trying to make a new php page with html code inside to display some information..however i wasn't able to change the size or the type of font. My guess is that phpnuke had set a default type of font for all modules/pages already, is there any ways to override it? Or if my guess is wrong, what is the problem?
thanks.
Actually that was one of the trillions of reasons i fell in love with php... people that are blind cannot resize your text so that your tables do't just die on you. What you are asking applies to geeklog too (i like geeklog better 
However, it is something i woud like to find out too so that i can apply it to my new website...
hence... *bump*

However, it is something i woud like to find out too so that i can apply it to my new website...
hence... *bump*
I still haven't figure out this html thing yet but here i have another question.
How can i make my article into pages just like this:
http://www.howardchui.com/modules.php?n ... e&artid=13
Thanks.
How can i make my article into pages just like this:
http://www.howardchui.com/modules.php?n ... e&artid=13
Thanks.