Page 1 of 1
Using html in php
Posted: Fri May 16, 2003 5:56 pm
by cy
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
Posted: Fri May 16, 2003 6:52 pm
by mikusan
Very simple... if you choose to write html with php modules in it... all you do is insert
Code: Select all
<? function foo()
{
echo('HI!);
}
?>
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
//this is a *.php file
$output = '<B>Hello</B>';
echo($output);
Posted: Fri May 16, 2003 7:55 pm
by cy
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.
Posted: Sat May 17, 2003 9:23 am
by mikusan
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*

Posted: Sat May 17, 2003 11:35 am
by volka
I'm not sure wether writing the html-output directly is the propery way, but e.g. for postNuke there are output functions that have to be used. Take a closer at the documentation wether
echo 'my output'; is feasable for phpNuke (may be, may be not

)
How do you try to change the layout?
Posted: Sat May 17, 2003 6:10 pm
by cy
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.
Posted: Sat May 17, 2003 7:55 pm
by m3mn0n
The $_GET method.
Posted: Wed May 21, 2003 4:00 am
by cy
Do you mind giving me more information on how to do it? I m new to php. THanks in advance
Posted: Wed May 21, 2003 4:13 am
by []InTeR[]
Posted: Wed May 21, 2003 8:36 pm
by cy
THanks i'll look into them.
Posted: Thu May 22, 2003 5:14 am
by mikusan
Well i use a similar technique myself (regarding 4 posts above) but I didn't quite catch what is it that makes sure one cannot resize the text