Keeping Halo Klean
Please Register or login.
Keeping Halo Klean
Please Register or login.
Keeping Halo Klean
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Keeping Halo Klean


 
Home pageHomePortalLatest imagesRegisterLog in
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Realms made sumtin cool
The PHP Basics EmptyMon Jan 10, 2011 11:18 pm by {FC}Bacon

» Navy Seels
The PHP Basics EmptySat Aug 21, 2010 12:06 am by {US}F.M

» {ßÐ Clan
The PHP Basics EmptyWed Aug 11, 2010 5:17 am by {US}F.M

» Black Dragons Youtube Account
The PHP Basics EmptyWed Aug 11, 2010 5:10 am by {US}F.M

» Password power indicator
The PHP Basics EmptyWed Aug 11, 2010 5:01 am by {US}F.M

» FaceBook connect now on KHK forums!
The PHP Basics EmptyWed Aug 11, 2010 4:46 am by {US}F.M

» {ßÐ} is now on facebook
The PHP Basics EmptyWed Aug 11, 2010 4:28 am by {US}F.M

» {ŬŜ}ÂpocÝ™ Now forum Moderator/Admin!
The PHP Basics EmptyMon Aug 09, 2010 8:21 am by {US}F.M

» Halo Hero
The PHP Basics EmptyWed Aug 04, 2010 4:22 am by {US}F.M

Top posters
{US}F.M
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
{BD}Draco
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
papi
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
{FC}SlimJim
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
[GsC]Fatal
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
{BD} Pain
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
ben57901
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
Halo Hero
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 
{FC}Bacon
The PHP Basics Vote_l10The PHP Basics Voting11The PHP Basics Vote_r10 

 

 The PHP Basics

Go down 
2 posters
AuthorMessage
{FC}SlimJim




Posts : 3
Reputation : 0
Join date : 2010-07-22
Age : 32
Location : Michigan USA

The PHP Basics Empty
PostSubject: The PHP Basics   The PHP Basics EmptyThu Jul 22, 2010 1:38 pm

<?php

//this i a single line comment

/*

this is a
multi line
comment
*/

$foo = 1; // this is a pre-defined variable
$bar = "-1"; //so is this

$foobar = $foo + $bar; // this is a simple addition statement

echo $foobar; //this returned the answer to the users browser. everything is not seen except the answer.



?>
Back to top Go down
http://www.foodclan.com
{US}F.M
Admin



Posts : 32
Reputation : 0
Join date : 2010-07-16
Age : 28
Location : New Zealand

The PHP Basics Empty
PostSubject: Re: The PHP Basics   The PHP Basics EmptyMon Aug 02, 2010 5:23 am

Do you find anything wrong with this part of my code?

Code:
<p align="center">
Date: <?php echo $todayis ?>


Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )



Attention: <?php echo $attn ?>

 
Message:
 
<?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?>


<?php echo $ip ?>
</p>
Back to top Go down
https://khklean.darkbb.com
{FC}SlimJim




Posts : 3
Reputation : 0
Join date : 2010-07-22
Age : 32
Location : Michigan USA

The PHP Basics Empty
PostSubject: Re: The PHP Basics   The PHP Basics EmptyMon Aug 02, 2010 1:52 pm

well, since your using un-defined variables, the code would be invaild, but if you defined them elsewhere, then ok. but are the &amp;quot;?&amp;quot;'s used as part of your echo statement, or not? as that will affect it. also, you can actually make your entire statment in PHP, w/o having to type &amp;lt;?php ...?&amp;gt; for each part of it.



[code]&lt;?php



&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p align=&quot;center&quot;&gt;
echo 'Date: &quot;.$todayis.&quot;/n';


echo 'Thank You : &quot;.$visitor.&quot;( &quot;.$visitormail.&quot; )/n';



echo 'Attention: &quot;.$attn.&quot;/n';


echo &quot;Message:&quot;;

$notesout = str_replace(&quot;\r&quot;, &quot;&lt;br/&gt;&quot;, $notes);
echo $notesout;


echo $ip ;
&lt;/p&gt;
?>
Back to top Go down
http://www.foodclan.com
{US}F.M
Admin



Posts : 32
Reputation : 0
Join date : 2010-07-16
Age : 28
Location : New Zealand

The PHP Basics Empty
PostSubject: Re: The PHP Basics   The PHP Basics EmptyTue Aug 03, 2010 3:57 am

thanks m8! afro
Back to top Go down
https://khklean.darkbb.com
Sponsored content





The PHP Basics Empty
PostSubject: Re: The PHP Basics   The PHP Basics Empty

Back to top Go down
 
The PHP Basics
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping Halo Klean :: Coding :: Guides & Tutorials-
Jump to: