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

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Data type mismatch
Hi,
I am migrating data from algol to c.I mapped real datatype in algol to double datatype in

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

login form can you find my error?
registrationform.php seems fine send data to registration.php
registration.php seems fine checks

Undefined index on my form
ok im getting Undefined index on this line.. print_r($_REQUEST['form']);

below is the full sc

UTL File problem
Hi
I have a file in certain path with the following permissions (The file is a dummy file witho

php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecur

how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste

problem with refreshing
in my site, i have an index page, it has a main div. this main div's content is changing according t

Image loading
Hi Developers,

I'm trying to display an image from images/image.gif getting the url from mysq

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