Hallo,
ich habe ein Script per PHP_SCRIPT_EXT eingebunden, das funktioniert auch richtig gut.
In dem Script wird ein Template included, in dem befinden sich ein Formular. Wenn jemand falsche Daten eingibt bekommt er wieder das selbe Formular ( also auch Template) zu sehen in dem die Felder als value die zuvor eingetragenen Werte besitzen. Das habe ich mit $_SESSION hinbekommen.
Wenn alle Werte korrekt sind, kommt er zur nächsten Seite, welche wieder included wird. Hier bekommt er all seine Daten nocheimal in einer Tabelle dargestellt. Die Werte wurden also vom Formular zur Tabelle per $_SESSION transportiert. Wenn ich wieder zurück ins Formular will, weil ich gesehen habe, dass etwas nicht Stimmt übernimmt er nicht mehr die $_SESSION Werte woran kann das liegen?
Ich übergeben die werte ganz normal mit $_SESSION['name'] = ...
Hat Jemand eine Idee? :o
Ich habe jetzt mal das hier versucht:
http://wiki.typo3.org/index.php/Extension_Developers_Guide#Using_sessions
Aber da bekomme ich folgende Notices:
<b>Notice</b>: Undefined index: tslib/class.tslib_fe.php in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>2876</b><br />
<br />
<b>Notice</b>: Undefined index: debug in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\index_ts.php</b> on line <b>532</b><br />
<br />
<b>Notice</b>: Undefined index: stat_excludeBEuserHits in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>3107</b><br />
<br />
<b>Notice</b>: Undefined index: stat_excludeIPList in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>3108</b><br />
<br />
<b>Notice</b>: Undefined index: stat_apache in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>3171</b><br />
<br />
<b>Notice</b>: Undefined index: tslib/class.tslib_fe.php in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>3236</b><br />
<br />
<b>Notice</b>: Undefined index: beLoginLinkIPList in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\class.tslib_fe.php</b> on line <b>3250</b><br />
<br />
<b>Notice</b>: Undefined index: admPanel in <b>H:\htdocs\typo3\typo3\sysext\cms\tslib\index_ts.php</b> on line <b>584</b><br />
Ich habe 4 Dateien
index.php - hauptdatei - session wird benötigt
tem1.tpl.php - erstes template - session wird benötigt
tem2.tpl.php - zweites template - session wird benötigt
func.php - funktionssammlung - session wird in einer funktion benötigt
Was muss ich jetzt tun, das alles funktioniert?