kcyberbob
Erfahrenes Mitglied
Hallo,
ich habe folgende Datei mit einem Formular.
Und wenn ich es abschicke, dann kommt eine leere Seite.
An was kann das liegen?
Ich mache das ja bei anderen Formularen genau so.
Aber hier wird nicht einmal TEST ausgegeben.
Gruß kcyberbob
PS: Bitte helft mir weiter.
ich habe folgende Datei mit einem Formular.
Und wenn ich es abschicke, dann kommt eine leere Seite.
An was kann das liegen?
PHP:
<?
include 'mysql.class.php';
include 'functions.class.php';
$mysql = new MySqlClient;
$mysql->Connect();
$function = new Functions;
if ($action == 'edit') {
$row = $mysql->FetchArray($mysql->Select("*", "b2f_members", "username = '$cookie_username'","",""));
?>
<table width="564" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" background="images/layout/content_top.gif"> </td>
</tr>
<tr>
<td background="images/layout/content_middle.gif">
<form name="profil" method="post" action="admin.php?location=profil&action=update&id=<? echo $row['id']; ?>">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="21" colspan="3" class="bottomline"><div class="newstitel"> <? echo $row['username']; ?>´s Profil </div></td>
</tr>
<tr>
<td height="21" colspan="3"><b>persönliche Daten </b></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">Passwort:</td>
<td bgcolor="#202020"><input name="passwort" type="password" id="passwort" value="<? echo $row['passwort']; ?>" class="input"/></td>
<td rowspan="9">
<div align="center">
<?
if ($row['image'] != "") {
?>
<img src="images/members/<? echo $row['image']; ?>" > </div>
<?
}
else {
echo "Kein Bild vorhanden";
}
?>
</div></td>
</tr>
<tr>
<td height="21">Passwort wdh: </td>
<td><input name="passwort2" type="password" id="passwort2" value="<? echo $row['passwort']; ?>" class="input"/></td>
</tr>
<tr>
<td width="100" height="21" bgcolor="#202020">Vorname:</td>
<td bgcolor="#202020"><input name="firstname" type="text" id="firstname" value="<? echo $row['firstname']; ?>" class="input"/></td>
</tr>
<tr>
<td height="21">Nachname:</td>
<td><input name="lastname" type="text" id="lastname" value="<? echo $row['lastname']; ?>" class="input"/></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">Geschlecht:</td>
<td bgcolor="#202020">
<input name="gender" type="radio" class="input" value="male" <? echo $select = ($row['gender'] == 'male') ? 'checked' : ''; ?>/>
<img src="images/icons/male.gif" width="13" height="13" align="absmiddle" alt="male">
<input type="radio" name="gender" value="female" class="input" <? echo $select = ($row['gender'] == 'female') ? 'checked' : ''; ?>/>
<img src="images/icons/female.gif" width="9" height="15" align="absmiddle" alt="female"> </td>
</tr>
<tr>
<td height="21">Sternzeichen:</td>
<td><select name="asterisk" class="input">
<option value="error" <? echo $select = ($row['asterisk'] == '') ? 'selected' : ''; ?>>Bitte wählen</option>
<option value="Widder" <? echo $select = ($row['asterisk'] == 'Widder') ? 'selected' : ''; ?>>Widder</option>
<option value="Stier" <? echo $select = ($row['asterisk'] == 'Stier') ? 'selected' : ''; ?>>Stier</option>
<option value="Zwilling" <? echo $select = ($row['asterisk'] == 'Zwilling') ? 'selected' : ''; ?>>Zwilling</option>
<option value="Krebs" <? echo $select = ($row['asterisk'] == 'Krebs') ? 'selected' : ''; ?>>Krebs</option>
<option value="Löwe" <? echo $select = ($row['asterisk'] == 'Löwe') ? 'selected' : ''; ?>>Löwe</option>
<option value="Jungfrau" <? echo $select = ($row['asterisk'] == 'Jungfrau') ? 'selected' : ''; ?>>Jungfrau</option>
<option value="Waage" <? echo $select = ($row['asterisk'] == 'Waage') ? 'selected' : ''; ?>>Waage</option>
<option value="Skorpion" <? echo $select = ($row['asterisk'] == 'Skorpion') ? 'selected' : ''; ?>>Skorpion</option>
<option value="Schütze" <? echo $select = ($row['asterisk'] == 'Schütze') ? 'selected' : ''; ?>>Schütze</option>
<option value="Steinbock" <? echo $select = ($row['asterisk'] == 'Steinbock') ? 'selected' : ''; ?>>Steinbock</option>
<option value="Wassermann" <? echo $select = ($row['asterisk'] == 'Wassermann') ? 'selected' : ''; ?>>Wassermann</option>
<option value="Fisch" <? echo $select = ($row['asterisk'] == 'Fisch') ? 'selected' : ''; ?>>Fisch</option>
</select> </td>
</tr>
<tr>
<td height="21" bgcolor="#202020">Alter:</td>
<td bgcolor="#202020"><input name="age" type="text" id="age" value="<? echo $age = ($row['age']) ? $row['age'] : 'tt.mm.jjjj'; ?>" class="input"/></td>
</tr>
<tr>
<td height="21">Location:</td>
<td>
<select class="input" onchange="ChangeImage('iconimg',value)" name="location">
<option value="no" <? echo $select = ($row['location'] == 'no') ? 'selected' : ''; ?>>Bitte wählen</option>
<option value="ger" <? echo $select = ($row['location'] == 'ger') ? 'selected' : ''; ?>>Deutschland</option>
<option value="bwb" <? echo $select = ($row['location'] == 'bwb') ? 'selected' : ''; ?>>Deutschland - Baden Württemberg</option>
<option value="bay" <? echo $select = ($row['location'] == 'bay') ? 'selected' : ''; ?>>Deutschland - Bayern</option>
<option value="ber" <? echo $select = ($row['location'] == 'ber') ? 'selected' : ''; ?>>Deutschland - Berlin</option>
<option value="brb" <? echo $select = ($row['location'] == 'brb') ? 'selected' : ''; ?>>Deutschland - Brandenburg</option>
<option value="bre" <? echo $select = ($row['location'] == 'bre') ? 'selected' : ''; ?>>Deutschland - Bremen</option>
<option value="fss" <? echo $select = ($row['location'] == 'fss') ? 'selected' : ''; ?>>Deutschland - Freistaat Sachsen</option>
<option value="ham" <? echo $select = ($row['location'] == 'ham') ? 'selected' : ''; ?>>Deutschland - Hamburg</option>
<option value="hes" <? echo $select = ($row['location'] == 'hes') ? 'selected' : ''; ?>>Deutschland - Hessen</option>
<option value="mvp" <? echo $select = ($row['location'] == 'mvp') ? 'selected' : ''; ?>>Deutschland - Mecklenburg Vorpomern</option>
<option value="nss" <? echo $select = ($row['location'] == 'nss') ? 'selected' : ''; ?>>Deutschland - Niedersachsen</option>
<option value="nrw" <? echo $select = ($row['location'] == 'nrw') ? 'selected' : ''; ?>>Deutschland - Nordrhein Westfalen</option>
<option value="rlp" <? echo $select = ($row['location'] == 'rlp') ? 'selected' : ''; ?>>Deutschland - Rheinland Pfalz</option>
<option value="sar" <? echo $select = ($row['location'] == 'sar') ? 'selected' : ''; ?>>Deutschland - Saarland</option>
<option value="sah" <? echo $select = ($row['location'] == 'sah') ? 'selected' : ''; ?>>Deutschland - Sachsen Anhalt</option>
<option value="dsw" <? echo $select = ($row['location'] == 'dsw') ? 'selected' : ''; ?>>Deutschland - Schleswig Holstein</option>
<option value="trg" <? echo $select = ($row['location'] == 'trg') ? 'selected' : ''; ?>>Deutschland - Thüringen</option>
<option value="ch" <? echo $select = ($row['location'] == 'ch') ? 'selected' : ''; ?>>Schweiz</option>
<option value="aar" <? echo $select = ($row['location'] == 'aar') ? 'selected' : ''; ?>>Schweiz - Aargau</option>
<option value="app" <? echo $select = ($row['location'] == 'app') ? 'selected' : ''; ?>>Schweiz - Appenzell</option>
<option value="bas" <? echo $select = ($row['location'] == 'bas') ? 'selected' : ''; ?>>Schweiz - Basel-Stadt</option>
<option value="bal" <? echo $select = ($row['location'] == 'bal') ? 'selected' : ''; ?>>Schweiz - Baselland</option>
<option value="ern" <? echo $select = ($row['location'] == 'ern') ? 'selected' : ''; ?>>Schweiz - Bern</option>
<option value="fre" <? echo $select = ($row['location'] == 'fre') ? 'selected' : ''; ?>>Schweiz - Freiburg</option>
<option value="gen" <? echo $select = ($row['location'] == 'gen') ? 'selected' : ''; ?>>Schweiz - Genf</option>
<option value="gla" <? echo $select = ($row['location'] == 'gla') ? 'selected' : ''; ?>>Schweiz - Glarus</option>
<option value="gbd" <? echo $select = ($row['location'] == 'gbd') ? 'selected' : ''; ?>>Schweiz - Graubünden</option>
<option value="jur" <? echo $select = ($row['location'] == 'jur') ? 'selected' : ''; ?>>Schweiz - Jura</option>
<option value="luz" <? echo $select = ($row['location'] == 'luz') ? 'selected' : ''; ?>>Schweiz - Luzern</option>
<option value="nbg" <? echo $select = ($row['location'] == 'sff') ? 'selected' : ''; ?>>Schweiz - Neuenburg</option>
<option value="sff" <? echo $select = ($row['location'] == 'sff') ? 'selected' : ''; ?>>Schweiz - Schaffhausen</option>
<option value="swy" <? echo $select = ($row['location'] == 'swy') ? 'selected' : ''; ?>>Schweiz - Schwys</option>
<option value="stu" <? echo $select = ($row['location'] == 'stu') ? 'selected' : ''; ?>>Schweiz - Solothurn</option>
<option value="stg" <? echo $select = ($row['location'] == 'stg') ? 'selected' : ''; ?>>Schweiz - St. Gallen</option>
<option value="tes" <? echo $select = ($row['location'] == 'tes') ? 'selected' : ''; ?>>Schweiz - Tessin</option>
<option value="thg" <? echo $select = ($row['location'] == 'thg') ? 'selected' : ''; ?>>Schweiz - Thurgau</option>
<option value="uwa" <? echo $select = ($row['location'] == 'uwa') ? 'selected' : ''; ?>>Schweiz - Unterwalden</option>
<option value="uri" <? echo $select = ($row['location'] == 'uri') ? 'selected' : ''; ?>>Schweiz - Uri</option>
<option value="val" <? echo $select = ($row['location'] == 'val') ? 'selected' : ''; ?>>Schweiz - Vallis</option>
<option value="waa" <? echo $select = ($row['location'] == 'waa') ? 'selected' : ''; ?>>Schweiz - Waadt</option>
<option value="zue" <? echo $select = ($row['location'] == 'zue') ? 'selected' : ''; ?>>Schweiz - Zürich</option>
</select>
<img src="images/icons/land/<? echo $row['location']; ?>.gif" name="iconimg" align="absmiddle"/> </td>
</tr>
<tr>
<td height="21" bgcolor="#202020">Land:</td>
<td bgcolor="#202020">
<select name="state" id="state" onChange="ChangeImage('iconimg1',value)">
<OPTION value="no" <? echo $select = ($row['state'] == 'no') ? 'selected' : ''; ?>>Bitte wählen</OPTION>
<option value="ger" <? echo $select = ($row['state'] == 'ger') ? 'selected' : ''; ?>>Deutschland</option>
<option value="aut" <? echo $select = ($row['state'] == 'aut') ? 'selected' : ''; ?>>Österreich</option>
<option value="ch" <? echo $select = ($row['state'] == 'ch') ? 'selected' : ''; ?>>Schweiz</option>
</select>
<IMG src="images/icons/land/<? echo $row['state']; ?>.gif" align="absMiddle" name="iconimg1"> </td>
</tr>
<tr>
<td height="21">Homepage:</td>
<td><input name="homepage" type="text" id="homepage" value="<? echo $row['homepage']; ?>" class="input" /> </td>
<td rowspan="7" bgcolor="#202020">
<div align="center">
<?
if ($row['status'] == 'admin') {
echo 'Administrator<br>';
}
if ($row['status'] == 'mod') {
echo 'Moderator<br>';
}
echo $row['teamstatus'];
?>
</div></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">E-Mail:</td>
<td bgcolor="#202020"><input name="email" type="text" id="email" value="<? echo $row['email']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21">ICQ:</td>
<td><input name="icq" type="text" id="icq" value="<? echo $row['icql']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">MSN:</td>
<td bgcolor="#202020"><input name="msn" type="text" id="msn" value="<? echo $row['msn']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21">AIM:</td>
<td><input name="aim" type="text" id="aim" value="<? echo $row['aim']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">registriert seit: </td>
<td bgcolor="#202020"><? $date = date ("d.m.Y", $row['date']); echo "$date"; ?></td>
</tr>
<tr>
<td height="21">letzter Login: </td>
<td>
<?
$lastvisit = date ("d.m.Y | H:i", $row['lastvisit']); echo "$lastvisit Uhr";
$time = time();
$status = $time-$row['lastvisit'];
if ($status <= "120") {
?>
<img src="images/icons/spot_green.gif" alt="online" width="13" height="14" align="absmiddle"> <b>online</b>
<?
}
else {
?>
<img src="images/icons/spot_red.gif" alt="offline" width="13" height="14" align="absmiddle"> <b>offline</b>
<?
}
?> </td>
</tr>
<tr>
<td height="21" bgcolor="#202020"> </td>
<td bgcolor="#202020"> </td>
<td bgcolor="#202020"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="21" colspan="4"><b>Lieblings...</b></td>
</tr>
<tr>
<td width="100" height="21" bgcolor="#202020">... Spiel: </td>
<td bgcolor="#202020"><input name="game" type="text" id="game" value="<? echo $row['game']; ?>" class="input" /></td>
<td width="100" bgcolor="#202020">... Musik: </td>
<td bgcolor="#202020"><input name="music" type="text" id="music" value="<? echo $row['music']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21">... Waffe: </td>
<td><input name="weapon" type="text" id="weapon" value="<? echo $row['weapon']; ?>" class="input" /></td>
<td>... Essen: </td>
<td><input name="food" type="text" id="food" value="<? echo $row['food']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">... Map: </td>
<td bgcolor="#202020"><input name="map" type="text" id="map" value="<? echo $row['map']; ?>" class="input" /></td>
<td bgcolor="#202020">... Getränk: </td>
<td bgcolor="#202020"><input name="drink" type="text" id="drink" value="<? echo $row['drink']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21" colspan="4"><b>Hardware</b></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">CPU:</td>
<td bgcolor="#202020"><input name="cpu" type="text" id="cpu" value="<? echo $row['cpu']; ?>" class="input" /></td>
<td bgcolor="#202020">Tower:</td>
<td bgcolor="#202020"><input name="tower" type="text" id="tower" value="<? echo $row['tower']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21">Grafikkarte:</td>
<td><input name="gfx" type="text" id="gfx" value="<? echo $row['gfx']; ?>" class="input" /></td>
<td>Monitor:</td>
<td><input name="monitor" type="text" id="monitor" value="<? echo $row['monitor']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">Festplatte:</td>
<td bgcolor="#202020"><input name="disk" type="text" id="disk" value="<? echo $row['disk']; ?>" class="input" /></td>
<td bgcolor="#202020">Tastatur:</td>
<td bgcolor="#202020"><input name="keyboard" type="text" id="keyboard" value="<? echo $row['keyboard']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21">RAM:</td>
<td><input name="ram" type="text" id="ram" value="<? echo $row['ram']; ?>" class="input" /></td>
<td>Maus:</td>
<td><input name="mouse" type="text" id="mouse" value="<? echo $row['mouse']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21" bgcolor="#202020">Connection:</td>
<td bgcolor="#202020"><input name="connection" type="text" id="connection" value="<? echo $row['connection']; ?>" class="input" /></td>
<td bgcolor="#202020">Betriebssystem:</td>
<td bgcolor="#202020"><input name="system" type="text" id="system" value="<? echo $row['system']; ?>" class="input" /></td>
</tr>
<tr>
<td height="21"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="21"> </td>
<td><input type="submit" name="Submit" value="Abschicken" class="input"/></td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="30" background="images/layout/content_bottom.gif"> </td>
</tr>
</table>
<?
}
elseif ($action == 'update') {
echo 'TEST';
}
?>
Ich mache das ja bei anderen Formularen genau so.
Aber hier wird nicht einmal TEST ausgegeben.
Gruß kcyberbob
PS: Bitte helft mir weiter.