Dobrze więc pokażę co robię i nie działa:
panel.php:
<head>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<?php include("kick.php"); ?>
<div class="style1">
<script src="http://max.jotfor.ms/min/g=jotform?3.0.1582" type="text/javascript"></script>
<script type="text/javascript">
JotForm.init();
</script>
<link href="http://max.jotfor.ms/min/g=formCss?3.0.1582" rel="stylesheet" type="text/css" />
<style type="text/css">
.form-label{
width:150px !important;
}
.form-label-left{
width:150px !important;
}
.form-line{
padding:10px;
}
.form-label-right{
width:150px !important;
}
.form-all{
width:231px;
color:Black !important;
font-family:Verdana;
font-size:12px;
}
.nowyStyl1 {
font-size: small;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
text-decoration: underline;
color: #808080;
}
</style>
<form class="jotform-form" action="" method="post" name="form_12941309133" id="12941309133" accept-charset="utf-8">
<input type="hidden" name="formID" value="12941309133" />
<div class="form-all">
<ul class="form-section">
<li id="cid_3" class="form-input-wide">
<div class="form-header-group">
<h2 id="header_3" class="form-header">
Panel Użytkownika
</h2>
</div>
</li>
<li class="form-line" id="id_4">
<div id="cid_4" class="form-input-wide">
<div id="text_4" class="form-html">
<p>
Witaj
<strong>
<strong>
<?
echo $_SESSION['USER_ID']; ?>
</strong>
</strong>
na stronie głównej.
</p>
</div>
</div>
</li>
<form action="main.php" method="post">
<input type="hidden" name="username" value="
<? echo $_SESSION['USER_ID']; ?> ">
<button name="Abutton1" type="submit">Wejdź do gry</button>
</form>
<br>
<br>
<a href="http://bornus.cba.pl/index.php?action=logout" class="nowyStyl1">Wyloguj</a>
I teraz chcę to odebrać w main.php:
<?
$username = $_POST['username'];
if ($username = NULL){
};
?>
<head>
<meta http-equiv="Content-Language" content="pl">
<style type="text/css">
.style1 {
text-align: center;
}
.style2 {
border-collapse: collapse;
border: 1px solid #000000;
background-image: url('images/paper_05.png');
}
.style3 {
text-align: center;
border: 1px solid #000000;
}
.style4 {
color: #0099FF;
}
</style>
</head>
<body style="background-image: url('images/forum-post-b1.png')">
<div class="style1">
<table style="width: 100%" class="style2">
<tr>
<td style="width: 205px; height: 494px" valign="top" class="style3">
Witaj <span class="style4"><?
?></span>.</td>
Albo

<span class="style4">
<? echo $_SESSION['USER_ID']; ?></span>.</td>
<td style="height: 494px"></td>
</tr>
</table>
</div>
Chodzi mi o odebranie przez $_SESSION a nie $_POST, bo przez post to jednorazówka.
Wie ktoś jak to zrobić by przy całej sesji mieć dostęp do $_SESSION['USER_ID'] ?