Typically session_start() is put at the very top of the code, outside of the html tags and within its own php tags. It looks like yours is within the html and that might be causing the problem.