Jump to content

html small code to php format


jaic

Recommended Posts

Hi folks

can 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

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
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.