PHP header and styling

Hi I have some php code with a header tag, but if i add html to, so i can style it, the header tag no longer works, is there a way to make this work?

the code is here [php]<?php
if ($_GET[‘state’] != success) {
header(‘Location: index.php?state=fejl’);
}
else{
echo(’

Tak, du har indtastet det hele korrekt, og der vil blive sendt billeder til dig"
’);
}
?>
[/php]

I want to style the " Tak, du har indtastet det hele korrekt, og der vil blive sendt billeder til dig" to be in the middle of the screen… and the screen to have a background with this
background: -webkit-linear-gradient(#e7e7e7 0%, #3e3d3d 100%);

Is that all your code or is there more above the code if html is output to the browser the header cannot be changed.

But if that is all the code with no output to the browser it should work.

header(‘Location: index.php?state=fejl’) is redirecting your page. You cannot add html to this. What you need to do is use CSS to style the elements that will show up on that page.

This only redirects the page if not success, so it would output to page and can be done in html

Sponsor our Newsletter | Privacy Policy | Terms of Service