Hi:
Excuse me, i dont know you, but i really need some help with the session handling. I'm just making proves to the session in PHP4 but it dont works.
I wrote this script (pr.php):
<body>
<?php
$count=9;
session_start();
session_register("count");
$HTTP_SESSION_VARS["count"]++;
?>
To continue, <A HREF="nextpage.php?<?=SID?>">click here</A>
</body>
But the result is:
Warning: Cannot send session cookie - headers already sent by (output started at /home/goi/public_html/pr.php:2) in /home/goi/public_html/pr.php on line 4
Warning: Cannot send session cache limiter - headers already sent by (output started at /home/goi/public_html/pr.php:2) in /home/goi/public_html/pr.php on line 4
To continue, click here
The code for nextpage.php is:
<body>
<?
SESSION_REGISTER("count");
$count = $HTTP_POST_VARS["count"];
echo $count;
?>
</body>
When i go to nextpage.php clicking in the link this happens:
Warning: Cannot send session cookie - headers already sent by (output started at /home/goi/public_html/nextpage.php:3) in /home/goi/public_html/nextpage.php on line 4
Warning: Cannot send session cache limiter - headers already sent by (output started at /home/goi/public_html/nextpage.php:3) in /home/goi/public_html/nextpage.php on line 4
I want to see $count, but i dont have idea of what's happening...
Please, i need your help!!!
Thank you.
JUNIOR TELLO.