Jump to content
xisto Community
Sign in to follow this  
iGuest

html and php

Recommended Posts

Hello, I wanna put the following html code in my php-nuke website:

<!-- BEGIN Help Center Live Code, Š Michael Bird 2004 --><div id="HCLInitiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:initiate_accept()"><img src="http://nightwarrior.freenukehosting.com/helpcenter/inc/skins/default/images/lh/initiate.gif" border="0"></a><br><a href="javascript:initiate_decline()"><img src="http://nightwarrior.freenukehosting.com/helpcenter/inc/skins/default/images/lh/initiate_close.gif" border="0"></a></div><script type="text/javascript" language="javascript" src="http://nightwarrior.freenukehosting.com/helpcenter/lh/live.php"></script><!-- END Help Center Live Code, Š Michael Bird 2004 -->
But I can't put it there cause the html tags are not allowed. Can anyone help me? :D

Greetz,
N!ghtwarr!or

Share this post


Link to post
Share on other sites

Who told you that html tags are not allowed there? Didn't you know that html is compatible with php because it's similar in structure. In fact, php is used in making dynamic pages like login, signup, etc... while html is used if you only want to make your pages in simplicity. If you'll look at the code, there's a resemblance between the two.Hope this helps! :D

Share this post


Link to post
Share on other sites

you could put it all in a print statement if you don't want to use multiple close and open php tags.

print '<div id="HCLInitiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:initiate_accept()"><img src="http://nightwarrior.freenukehosting.com/helpcenter/inc/skins/default/images/lh/initiate.gif" border="0"></a><br><a href="javascript:initiate_decline()"><img src="http://nightwarrior.freenukehosting.com/helpcenter/inc/skins/default/images/lh/initiate_close.gif" border="0"></a></div><script type="text/javascript" language="javascript" src="http://nightwarrior.freenukehosting.com/helpcenter/lh/live.php"></script>';

Share this post


Link to post
Share on other sites

while html is used if you only want to make your pages in simplicity.

I don't agree that HTML is for simplicity. In fact HTML code with CSS can do a very complex layout. HTML and CSS do the design and the look of the website while serverside scripts (PHP, JSP, ASP, etc) do the dynamic part of the website.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.