Session error when i click on a button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rubdot
Forum Newbie
Posts: 1
Joined: Thu Jan 13, 2005 12:03 pm

Session error when i click on a button

Post by rubdot »

On my website when i host it i get session errors when i click on a couple of my buttons.


I understand that the error is because there is something being written to the page before i start the session but the session_start() is on the first line of the next page code.

So i think that page that is before is still in memory which is calling the session error. Can anyone give me any advice on how to make the button so that an error isn't thrown.

Thanks Rob
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

please post the code of the page causing the error. In light of seeing it for specific guidance.. We have a tutorial in the Tutorials section called: Warning: Cannot add header information
Post Reply