| Index
» Projects
» phpMyEdit
» Forum
» using $_SESSION - data lost |
 |
jan99
Joined: 23 Jan 2008
Posts: 13
Posted: 2008-03-31 09:04
Back to top
Reply with quote
|
hi !
i want so save data in $_SESSION-varible to use by phpMyEdit. but when i click on the add-button my data lost !
my code:
| Code: |
<?php
session_start();
$_SESSION['Send'] = $_POST['Send'];
$_SESSION['turnierid'] = $_POST['turnierid'];
echo 'turnierid: '.$_POST['Send'].'---<br>';
echo 'turnierid: '.$_POST['turnierid'].'---<br>';
if($_SESSION['Send'])
{
if(empty($_SESSION['turnierid']))
{
$error[] = "Es wurde kein Turnier gewält !<br>";
die("Text anpassen 1 - <a href=\"dc_input_10.php\">Turnierauswahl</a>");
// }elseif(!is_integer($_REQUEST['turnierid'])){
// $error[] = "ungültige Turnierkennung !<br>";
// die("Text anpassen 2 - <a href=\"dc_input_10.php\">Turnierauswahl</a>");
}//endif - name
//Turnierkennung
$turnierid = $_SESSION['turnierid'];
....
// Now important call to phpMyEdit
require_once $admin_data['class_path'];
new phpMyEdit($opts);
?> |
when i open the side there will show a value for turnierid - after click ADD there is no value.
can anybody help me ??
regards Jan :-)
|
|
Post new topic
Reply to topic
|
|
|
|