| | | | |
| | |
| Gast
Beiträge: n/a
| Code: <?
include("connect4.php");
session_name('SID');
if(!session_is_registered('sukkmymothersdick')) {
if($action == "") {
echo'
[img]admin/bar_t.jpg[/img]
<center>
<form name="login" id="form1" method="post" action="index.php?psn=08&action=login">
<table width="28%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" align="left" valign="bottom">Nick</td>
<td valign="bottom">
<input type="text" name="nick"></td>
</tr>
<tr>
<td align="left">Password</td>
<td align="left"><input type="text" name="pass"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="Image" src="admin/login.jpg" width="50" height="20" border="0" align="absbottom" value="Login"></td>
</tr>
</table>
</form>
</center>
[img]admin/bar_b.jpg[/img]
';
}
if($action == "login") {
$bnus = mysql_query("SELECT * FROM admin WHERE nick='$nick'");
$bnuc = mysql_num_rows($bnus);
$bnud = mysql_fetch_array($bnus);
if($bnuc < 1) {
echo'
[img]admin/bar_t.jpg[/img]
<center>Die von ihnen eingegeben Daten sind falsch.
zurück</center>
[img]admin/bar_b.jpg[/img]
';
}
else {
if($pass == $bnud[pass]) {
$value = md5("Haleluja");
session_register('sukkmymothersdick');
$sukkmymothersdick = $value;
$strip = session_id(SID);
echo'
<meta http-equiv="refresh" content="0; url=index.php?psn=08&SID='.$strip.'">
';
}
else {
echo'
[img]admin/bar_t.jpg[/img]
<center>Die von ihnen eingegeben Daten sind falsch.
zurück</center>
[img]admin/bar_b.jpg[/img]
';
}
}
}
}
else {
echo"geklappt";
}
?>
hier hab ich das problem das er die session nicht registred aber why? |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [Erledigt] Session Problem | karina_02 | PHP Tipps 2008 | 6 | 18.05.2008 22:37 |
| Problem bei session Lifetime | Cyberbob_at_tot | PHP Tipps 2007 | 5 | 05.06.2007 17:47 |
| Problem mit Session | Charly Shop Sui | PHP Tipps 2006 | 13 | 25.08.2006 17:08 |
| Und noch ein Session Problem... | Weyoun | PHP Tipps 2006 | 9 | 27.02.2006 22:17 |
| Problem mit Firefox und Session | PHP Tipps 2005-2 | 5 | 25.08.2005 01:14 | |
| problem mit session | LA-Finest | PHP Tipps 2005-2 | 13 | 18.08.2005 15:54 |
| Session wieder aufnehmen; Problem mit GET | Jacks Rache | PHP-Fortgeschrittene | 9 | 12.08.2005 14:32 |
| [Erledigt] Problem mit Session | PHP Tipps 2005-2 | 1 | 06.08.2005 19:07 | |
| Problem mit Session | PHP Tipps 2005-2 | 13 | 10.07.2005 18:20 | |
| seltsames php und session problem | netti | PHP-Fortgeschrittene | 16 | 01.06.2005 17:01 |
| [Erledigt] Hilfe...PhpBB Session Problem!! | PHP Tipps 2004-2 | 2 | 15.12.2004 18:28 | |
| Session Problem beim Login | PHP Tipps 2004-2 | 6 | 15.12.2004 09:37 | |
| problem mit ner Session, es gehn Arrays verloren | PHP-Fortgeschrittene | 3 | 10.11.2004 18:01 | |
| [Erledigt] PHP Session Problem, dringend! | PHP-Fortgeschrittene | 17 | 21.10.2004 21:15 | |
| Session wird falsch wieder aufgenommen - Problem mit Session | PHP Tipps 2004 | 2 | 16.10.2004 14:30 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| echo registred session, img session problem |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.