Thread: Php/sql
View Single Post
Old 06-02-2006, 06:19 PM   #15
Mara
Abandonia nerd

 
Join Date: Jan 2006
Location: ,
Posts: 93
Default

Quote:
Originally posted by Reup@Feb 3 2006, 01:29 PM
You MUST put the session_start() as the first thing in your file. THis has to be sent before any headers. As soon as you leave a single empty line or a HTML tag in front of it, you'll get the 'headers already sent' error!

Edit: and you can use the supergloblal $_SESSION['varname'] to store and retreive stuff in your session variable!

I remember spending hours becauce a had jump a line before the <?php
I new about that, but I hadn't seen that stupid backspace

"Pressing Submit a second time gives NULL for the checkbox array."
-> normal. every is erased when you vadid , or refresh the page. Use the sessions if you want to keep it.
Mara is offline                         Send a private message to Mara
Reply With Quote