Jump to content

having html code before php headers


seany123

Recommended Posts

how do i get around code when its like this?

 

<html>
<head>
<title>MafiaKillerz</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
</head>
<body alink="#cc9900" vlink="#cc9900" link="#cc9900">
    </div>
    </div>
    <tr>
    <div id="left_c"><div class="g_content" style="width: 613; height: 90"><h3>  Fight House</h3><div class="g_text">

    <?php  
switch($_GET['act'])
{
    case "attack":
        if (!$_GET['username']) //No username entered
        {
            header("Location: battle.php");
            break;
        }

Link to comment
https://forums.phpfreaks.com/topic/181763-having-html-code-before-php-headers/
Share on other sites

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.