|
Posted by IchBin on 11/06/06 04:17
I am getting the error message below when ever I try to start my script
on two different servers. I am not getting any errors off of my PC. I
have looked around and found the answer a simple one. I can not stop the
error in my script. The session_start() is the first thing that happens
before any Headers are created. Any one have any suggestions. Include
the start of the code that uses the session var.
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at
/home/www/ichbinquotations.awardspace.com/quotes/quotes.php:1) in
/home/www/ichbinquotations.awardspace.com/quotes/quotes.php on line 8
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home/www/ichbinquotations.awardspace.com/quotes/quotes.php:1) in
/home/www/ichbinquotations.awardspace.com/quotes/quotes.php on line 8
<?php
/**
*
*
* @version $Id$
* @copyright 2006
*/
session_start();
if(!isset($_SESSION['abbr_letter']))
$_SESSION['abbr_letter'] = 'A';
require_once 'includes/config.inc.php';
require_once 'includes/header.inc.php';
//
// Start a Form
?>
<html>
<head>
<style type="text/css" >
body {
margin-left: 10%; margin-right: 10%;
color: purple;
background-color: #FFFFF2;
}
quote{ background-color: white }
</style>
</head>
<b><FORM NAME="author_abbrv" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<input type="radio" name="abbr_letter" value="A" checked="TRUE"
onclick="submit()"> A
<input type="radio" name="abbr_letter" value="B" onclick="submit()"> B
<input type="radio" name="abbr_letter" value="C" onclick="submit()"> C
<input type="radio" name="abbr_letter" value="D" onclick="submit()"> D
<input type="radio" name="abbr_letter" value="E" onclick="submit()"> E
<input type="radio" name="abbr_letter" value="F" onclick="submit()"> F
<input type="radio" name="abbr_letter" value="G" onclick="submit()"> G
<input type="radio" name="abbr_letter" value="H" onclick="submit()"> H
<input type="radio" name="abbr_letter" value="I" onclick="submit()"> I
<input type="radio" name="abbr_letter" value="J" onclick="submit()"> J
<input type="radio" name="abbr_letter" value="K" onclick="submit()"> K
<input type="radio" name="abbr_letter" value="L" onclick="submit()"> L
<input type="radio" name="abbr_letter" value="M"
onclick="submit()"> M <br>
<input type="radio" name="abbr_letter" value="N" onclick="submit()"> N
<input type="radio" name="abbr_letter" value="O" onclick="submit()"> O
<input type="radio" name="abbr_letter" value="P" onclick="submit()"> P
<input type="radio" name="abbr_letter" value="Q" onclick="submit()"> Q
<input type="radio" name="abbr_letter" value="R" onclick="submit()"> R
<input type="radio" name="abbr_letter" value="S" onclick="submit()"> S
<input type="radio" name="abbr_letter" value="T" onclick="submit()"> T
<input type="radio" name="abbr_letter" value="U" onclick="submit()"> U
<input type="radio" name="abbr_letter" value="V" onclick="submit()"> V
<input type="radio" name="abbr_letter" value="W" onclick="submit()"> W
<input type="radio" name="abbr_letter" value="X" onclick="submit()"> X
<input type="radio" name="abbr_letter" value="Y" onclick="submit()"> Y
<input type="radio" name="abbr_letter" value="Z" onclick="submit()"> Z
<br>
</FORM>
<b><FORM NAME="author" method="POST" action="<?php echo
$_SERVER['PHP_SELF'];?>"></b>
<SELECT NAME="author_pk" SIZE="20" COLS="10" onclick="submit()">
<?php
//
//Check for the first time pass
if( !isset($_POST['abbr_letter']) ) {
$_POST['abbr_letter'] = $_SESSION['abbr_letter'];
}
//
//If already set then reset the local Var to the Session
$_SESSION['abbr_letter'] = $_POST['abbr_letter'];
//
//Setup for the database call for authors by first letter
$sqlcmd = $author_detail_select_by_Letter . $_POST['abbr_letter']
. $author_detail_orderBy;
--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Navigation:
[Reply to this message]
|