hi leute,
bräuchte mal ganz, ganz dringend eure hilfe. sitze bereits die ganze nacht und komme einfach nicht auf den fehler.
hab 2 probleme:
1. hab ein feld für den admin-login. wenn ich dieses anklicke, erscheint ganz kurz
BENUTZER + PASSWORT zum eintragen, ist aber gleich wieder weg. warum????
code vom "eintrag-erstellen":
PHP-Code:
<table style="border:1px solid #000000;border-collapse:collapse;background-color:<? echo $bg1; ?>;font-family:arial;font-size:12px;">
<tr>
<th style="background-color:<? echo $th_bg; ?>;color:<? echo $th_txt; ?>;">Neue Nachricht erstellen </th>
</tr>
<tr>
<td style="text-align:left;padding:0px 10px 0px 10px;">
<form action="<? echo $_PHP['SELF']; ?>" method="post">
<? $userip = $_SERVER['REMOTE_ADDR']; echo '<input type="hidden" name="ip" value="' . $userip . '">'; ?><br>
<? $date = date('M j, Y'); echo '<input type="hidden" name="date" value="' . $date . '">'; ?><br>
Name:<br>
<input type="text" name="name" size="40"><br>
Email:<br>
<input type="text" name="email" size="40"><br>
Webseite:<br>
<input type="text" name="website" value="http://" size="40"><br>
Nachricht:<br>
<textarea name="comment" rows="10" cols="30"></textarea><br>
Security Code:<br>
<img src="txt2png.php?" name="img" id="img" alt="Security Code" title="Security Code"><br>
Code eingeben:<br>
<input id="security_code" name="security_code" type="text">
<input type="submit" name="add_msg" value="Send">
<input type="reset" value="Clear">
</form>
</td>
</tr>
<tr>
<td align="center">
<br>
<a href="" onclick="newcode(); return false;">Neuen Code erstellen</a><br>
<br>
</td>
</tr>
</table>
2. bei neuen einträgen muß man einen captcha-code eingeben. obwohl ich immer das richtige eingebe, steht immer "falscher code".
code vom admin-feld:
PHP-Code:
<table style="width:600px;padding:0px;border-collapse:collapse;font-size:12px;font-family:arial;text-align:right;">
<tr>
<td style="text-align:right;padding:10px 10px 0px 0px;">
<?
if (!isset($_SESSION['show_admin']) && !isset($_SESSION['guestbook_admin'])) {
?>
<a href="<? echo $_PHP['SELF'] . '?show_admin' ?>"><img src="images/edit.gif" width="20" height="10" border="0"></a>
<?
}
else if (!isset($_SESSION['guestbook_admin']) && isset($_SESSION['show_admin'])) {
?>
<table style="width:100%;">
<tr>
<td style="font-family:arial;font-size:12px;height:12px;text-align:right">
<form action="<? echo $_PHP['SELF']; ?>" method="post">
Name:
<input type="text" name="name" size="10"><br>
Pass:
<input type="password" name="pass" size="10"><br>
<input type="submit" name="admin_login" value="Anmelden">
</form>
</td>
</tr>
</table>
<?
}
else {
?>
<table style="width:100%;">
<tr>
<td style="font-family:arial;font-size:12px;height:12px;text-align:right">
Angemeldet als <? echo $_SESSION['guestbook_admin'] . ' - [ <a href="' . $_PHP['SELF'] . '?logout">Abmelden</a> ]'; ?>
</td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table>
hab das skript damals gekauft, kann den inhaber aber leider nicht mehr ausfindig machen.
das gästebuch ist wirklich einfach aufgebaut und ich möchte das daher nicht unbedingt wechseln....
bitte, bitte, bitte um eure hilfe....