Re: PHP.... i suck at it

From: Date: Sun, 22 Jul 2001 17:57:13 +0000
Subject: Re: PHP.... i suck at it
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59078@lists.php.net to get a copy of this message
Well, there are a few ways to do it. The secret is to know a little bit of HTML. Another poster suggested using the <br> (line break) tag. The paragraph tag would also work nicely: <?php echo "<p>IP ADDRESS</p>"; echo "<p>$remote_admin</p>"; ?> Or you could start to get fancy by doing it with a table: <?php echo "<table>"; echo "<tr><td>IP ADDRESS</td></tr>"; echo "<tr><td>$remote_admin</td></tr>"; echo "</table>"; ?> When I'm writing code such as the above, though, I usually do something more like this: <p> IP ADDRESS<br> <?php echo $remote_admin; ?> </p> Hope that helps! Matt On Sun, Jul 22, 2001 at 05:46:30PM -0700, Kyle Smith wrote: > Ok this may sound really pathetic but how do i add a new line (like a space) to a code like > this > > <?php > echo "IP ADDRESS"; > > echo $remote_admin; > ?> > > cause when i try the code out it looks like > > IPADDRESS127.0.0.1 > > and i want it to look like > > IP ADDRESS > 127.0.0.1 > > or > > IP ADDRESS > > 127.0.0.1 > > so what do i put in? > > Thanks for your time :) -- Matt Garman, garman@uiuc.edu "I'll tip my hat to the new constitution, Take a bow for the new revolution Smile and grin at the change all around, Pick up my guitar and play Just like yesterday, Then I'll get on my knees and pray..." -- Pete Townshend/The Who, "Won't Get Fooled Again"

« previous php.general (#59078) next »