Re: how did I wind up with double headers? [message #184570 is a reply to message #184569] |
Sun, 12 January 2014 00:20 |
Beauregard T. Shagnas
Messages: 154 Registered: September 2010
Karma:
|
Senior Member |
|
|
richard the sto0pid wrote:
> richard the sto0pid wrote:
>> http://mroldies.net/home.php
>>
>> View the page source.
>> You will see I have two sets of headers.
>> Yet, the original document does not!
>> Where in the hell did the extra headers come from?
>
> For you whiners that insist, here's the damn whole page with code.
>
> <!DOCTYPE html>
> <html lang="en">
> <head>
> <meta charset="utf-8">
> <title>Mr Oldies Preserving Rock and Roll Forever!</title>
>
> <style>
>
> </style>
>
> </head>
>
> <body>
>
> <?php
>
> $go=$_GET['a'];
> if(empty($go)){$go=0;}
>
> if ($go==0){include "http://mroldies.net/home1.php";}
> if ($go==1){include "http://mroldies.net/test/index2.php";}
> if ($go==2){include "http://mroldies.net/radio/24hours.php";}
If you were smart enough, you would use an if/elseif or a switch command
there, saving processing time. But that's beyond your meager abilities.
> ?>
>
>
> </body>
> </html>
And if you had even a modicum of ability, you would know that each one of
those possible includes *already has* html, head, and body elements.
It's so simple, even a child could understand it.
--
-bts
-This space for rent, but the price is high
|
|
|