[PHP] RE: [PHP-DB] cookies and Global variables From: Niklas Lampén (niklas.lists <email protected>)
Date: 06/06/02

1. Cookies _has_ to be sent before anything else, that just is the case.

2. Sessions are the answer for thisone.

Niklas

-----Original Message-----
From: Dib, Walid (MED, Stagiaire GEMS) [mailto:Walid.Dib <email protected>]
Sent: 6. kesäkuuta 2002 10:06
To: 'php-db <email protected>'
Subject: [PHP-DB] cookies and Global variables

Hello

1) I want to use cookies for my site, how can I do it? My browser warn
me that headers are already sent!!

2) How can I use the same variables on all pages:
        for example: $login, I need this variable on all pages to send
requests to a MySQL database.

Thanks!!!!

DIB Walid

        

###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php