Echo multiple lines of html code


Posted on 16th Feb 2014 07:03 pm by admin

Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

I intend to echo a form if a variable is set and nothing if it is not set. And right now, I echo each line of html code, which works well but is a lot to do for such a thing. I am pretty sure there should be a better way to do it but I can't find how...

Any thoughts?

No comments posted yet

Your Answer:

Login to answer
115 Like 32 Dislike
Previous forums Next forums
Other forums

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

Help on code output
My CODE:

Code: [Select] echo "<phone>".$line["phone"].&qu

Simple PHP/Java Help..
Hi,
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

Mail functionality from localhost to server
Hi

I am facing problem of mail functionality.

When i tested mail functionality in my

progress bar...need expert opinion of experienced webmaster
Hey guys, quick question:

I want to display a progress bar when I upload files, but I am not

in php, link returns to the line
When I add a link in a php page, the link word returns to the line (as a
would do)

Examp

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

Customizing message/behavior
Hi,I'm using the ASP.NET membership/authorization controls in my application. Some parts of my appli

scandir clients directory
hi,
how can i scandir the clients directory? i need a script that when i click a button it will u

DELETE rows based on content
I have a link in my rows

$bit="http://bit.ly/abcd";
$query = mysql_query("D

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash