Reply
Im a biginner of PHP..
Old 02-24-2006, 07:14 PM Im a biginner of PHP..
Junior Talker

Posts: 8
Hello,

Im a beginner of PHP.. I would like to know how to simply make thigns bold, underline.. or make a link or images.. and is it similar to HTML coding??


-jpui-
__________________
--------------------------
www.jpui.net

joey@jpui.net
jpui is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-24-2006, 08:32 PM RE: Im a biginner of PHP..
Junior Talker

Posts: 185
HTML can be used in a php file.

if displaying some text in the middle of a script, for example displaying that text only if $string is equal to 123:
PHP Code:
<?php
if ($string == 123){
echo 
"<b>the variable string is set to 123</b>";
}
?>
or, you can do this to display the text regardless of what a variable is:
PHP Code:
<html><body>
<b>here's some text that always displays.</b>
<?php
//put your php code here
?>
</body></html>
PureEvil is offline
Reply With Quote
View Public Profile Visit PureEvil's homepage!
 
Old 02-25-2006, 03:04 AM RE: Im a biginner of PHP..
RedMatrix's Avatar
Novice Talker

Latest Blog Post:
What is to come?
Posts: 6
Name: David
That's very interesting.

so a .PHP file can have HTML? and the php can 'write' out html code on the fly!
RedMatrix is offline
Reply With Quote
View Public Profile
 
Old 02-28-2006, 10:22 PM RE: Im a biginner of PHP..
Junior Talker

Posts: 20
Basically yes, the server parses php to html when it processes it. So you can imbed html within php pages - so all your formatting should be done with html.
Tim356 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Im a biginner of PHP..
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13046 seconds with 12 queries