Nicht mehr ganz neu hier
moin leute ich hab mal mit php angefangen warum funktioniert dieser code niocht ich checks net
EDIT : Der Fehler ist das egal was ich section zuweise beides wird angezeigt ? auch wenn section nix hat werden beide angezeigt
Code:
if ($_GET[section]="Logout"){
session_destroy;
echo"
<td valign=\"top\" style=\"padding-left:90px;padding-top:20px \">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"400\" >
<tr class=\"titeldetail\"><td background=\"bilder/titel.gif\" height=\"49\" >Logout Erfolgreich</td></tr>
<tr class=\"detail\"><td background=\"bilder/detail.gif\"> <p class=\"text\">Ihr Logout war Erfolgreich</p></td></tr>
<tr><td background=\"bilder/footer.gif\" height=\"25\"></td></tr>
</table>
</td></tr>
";
};
if ($_GET[section]="Login"){
echo"
<td valign=\"top\" style=\"padding-left:90px;padding-top:20px \">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"400\" >
<tr class=\"titeldetail\"><td background=\"bilder/titel.gif\" height=\"49\" >Login Erfolgreich</td></tr>
<tr class=\"detail\"><td background=\"bilder/detail.gif\"> <p class=\"text\">Ihr Login war Erfolgreich</p></td></tr>
<tr><td background=\"bilder/footer.gif\" height=\"25\"></td></tr>
</table>
</td></tr>
";
};
EDIT : Der Fehler ist das egal was ich section zuweise beides wird angezeigt ? auch wenn section nix hat werden beide angezeigt