Re: doctype not found? [message #173609 is a reply to message #173607] |
Wed, 20 April 2011 12:28 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 20/04/2011 14:20, geoff(at)invalid(dot)invalid escribió/wrote:
> On Wed, 20 Apr 2011 13:00:34 +0200, "Álvaro G. Vicario"
> <alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote:
>
>> There is no DOCTYPE *on top* of the document. Even if there was one, you
>
> Álvaro
>
> thanks for your comments.
>
> I have added the doctype etc info to the php at the top of the page
> and now the page is centred in IE9 and the other browsers and W3C HTML
> checker finds no errors.
>
> Seems OK?
>
> Cheers
>
> Geoff
>
> <?php
> session_start();
> setcookie("firsttime","no");
> $firsttime = $_COOKIE[firsttime];
You don't have a constant called firsttime so this should trigger a
notice. You should enable full error reporting when developing:
ini_set('display_errors', TRUE);
error_reporting(E_ALL);
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|