jaic Posted November 1, 2006 Share Posted November 1, 2006 Hi folkscan anyone change this to php for me please<body bgcolor="#000000"><div style="position: absolute; width: 143px; height: 31px; z-index: 1; left: 240px; top: 8px; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" id="lazer"> <font color="#FB9813">ACCESS DENIED</font></div>many thanks for your help!!! Link to comment https://forums.phpfreaks.com/topic/25839-html-small-code-to-php-format/ Share on other sites More sharing options...
Orio Posted November 1, 2006 Share Posted November 1, 2006 What do you mean "change to php"...? PHP and HTML are two diffrent things...Orio. Link to comment https://forums.phpfreaks.com/topic/25839-html-small-code-to-php-format/#findComment-117982 Share on other sites More sharing options...
jaic Posted November 1, 2006 Author Share Posted November 1, 2006 well i have only just started with this php and have a website that has a simple login page on it, i am having parsing errors and cant figure out how to make the background black and the writing orange, as in the script above. i had to use text books to design this login screen which works, im just looking to refine it.so. really what, two lines of script do i need before character to define the background colour and the font colour??thanks Link to comment https://forums.phpfreaks.com/topic/25839-html-small-code-to-php-format/#findComment-117985 Share on other sites More sharing options...
Orio Posted November 1, 2006 Share Posted November 1, 2006 You just need to add this between your "<?php" and "?>" tags in the place you want it to be-[code]echo '<body bgcolor="#000000"><div style="position: absolute; width: 143px; height: 31px; z-index: 1; left: 240px; top: 8px; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" id="lazer"> <font color="#FB9813">ACCESS DENIED</font></div>';[/code]Orio. Link to comment https://forums.phpfreaks.com/topic/25839-html-small-code-to-php-format/#findComment-117992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.