| Index
» Projekty
» phpMyEdit
» Fórum
» using $_SESSION - data lost |
 |
jan99
Založený: 23.01.2008
Príspevky: 13
Zaslal: 2008-03-31 09:04
Návrat hore
Odpovedať s citátom
|
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:
| Kód: |
<?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 :-)
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|