Hi,
I am trying to use sessions to display information from one page to the next one but I am having the following problems. Could anyone plz help me???????????
Here is my code:

``````<?php
\$pnm1=\$_POST;/////////name of text box from previous page

include("db_connect.php");

\$sql="SELECT * FROM new_party WHERE party_name='\$pnm1'";
\$result=mysql_query(\$sql);

\$count=mysql_num_rows(\$result);

if(\$count==0){

session_start();
\$_session=\$pnm1;
.................... and so on
``````

The errors that I am having is as follows:

``````Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program files\easyphp1-8\www\politics\pro\processregisterparty.php:2) in c:\program files\easyphp1-8\www\politics\pro\processregisterparty.php on line 19

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\easyphp1-8\www\politics\pro\processregisterparty.php:2) in c:\program files\easyphp1-8\www\politics\pro\processregisterparty.php on line 19
``````