By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Embedding HTML with PHP

P: 65
Hi friends,
Can anyone tell me,
how can i embed html tags within the php script?

<?php
echo "HI";
"<br><h1>Welcome</h1>"
?>

If I wrote as the above, the html tags doesn't works.
I got "HI" only as my output.
Is it right or wrong?
Plz.... help me soon...

Thanx and Regards....
Feb 13 '08 #1
Share this Question
Share on Google+
1 Reply


P: 59
<?php
echo "HI";
"<br><h1>Welcome</h1>"
?>

Hi,

try this.

<?php
echo "HI";
?>
<br><h1>Welcome</h1>
<?php
//rest of your php code goes here
?>
Feb 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.