hi,
ich wollte Euch natürlich nicht mit dem ganzen Coding belasten aber wenn's hilft:
Hier ist meine Index.php-------------------------------------
<?php include("kopf1.php");
echo "<body bgcolor="#FFFFFF">
<table Border="2" width="100%" height="100%" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<form action="ausgabe1.php" method="get">
<tr>
<td width="120" height="20" align="right"> <!Zeile 1 Spalte 1>
Vermittler-ID </td> <!Zeile 1 Spalte 2>
<td>
<input type="text" name="Vermittler-ID" size="30" maxlength="30">
</td>
</tr>
<tr> <!Zeile 1>
<td width="120" height="20" align="right"> <!Zeile 1 Spalte 1>
Anrede
</td> <!Zeile 1 Spalte 2>
<td>
<select name="Anrede">
<option>Bitte wählen Sie aus---------------</option>
<option value="Herr">Herr</option>
<option value="Frau">Frau</option>
<option value="Dr.">Dr.</option>
<option value="Prof.">Prof.</option>
</select>
</td>
</tr>
<tr> <!Zeile 2>
<td Width="120" height="20" align="right">
Vor-/Nachname:
</td>
<td>
<input type="text" name="Vorname" size="30" maxlength="30">
<input type="text" name="Nachname" size="30" maxlength="30">
</td>
</tr>
<tr>
<td Width="120" height="20" align="right">
Strasse/HsNr:
</td>
<td>
<input type="text" name="Strasse" size="50" maxlength="50">
<input type="text" name="Hausnummer" size="10">
</td>
</tr>
<tr>
<td Width="120" height="20" align="right">
PLZ/Ort:
</td>
<td>
<input name="PLZ" size="5" maxlength="5">
<input name="Ort" size="55" maxlength="55">
</tr>
<tr>
<td Width="120" align="right">
</td>
<td align="right">
<input type="submit" value="Suchen" name="Suchen" >
<input type="submit" value="Speichern" name="Speichern" >
<input type="submit" value="Löschen" name="Löschen" >
</td>
</td>
</tr>
</form>
</tr>
</table>
</body>";
include("fuss.php");
?>
Und hier ist die berüchtigte Ausgabe1.php---------------------------
<?php @include('kopf1.php');
@include('config.inc.php');
If (isset($Suchen)) {
echo "<body bgcolor="#FFFFFF">
<table Border="2" width="100%" height="100%" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<form action="index.php" method="get"> <tr> <!Zeile 1>
<td width="120" height="20" align="right"> Bitte wählen Sie:
</td> <!Zeile 1 Spalte 1>
<td> <!Zeile 1 Spalte 2>
<select name="select">
<option value="0"> </option>\n";
mysql_connect($sqlhost,$sqluser,$sqlpw);
$query = "SELECT * FROM tb_adressen GROUP BY VermittlerID";
$result = mysql_db_query($sqldb, $query);
if ($result) {
while ($r=mysql_fetch_array($result)) {
echo "<option value="$r[VermittlerID]">$r[Nachname] $r[Vorname]</option>\n";
}
}
echo "</select>
</td>
</tr>
<tr> <!Zeile 2>
<td width="120" align="right"> <!Zeile 2 Spalte 1>
</td> <td> <!Zeile 2 Spalte 2>
<input type="submit" name="OK" value="OK">
</div>
</td>
</tr>
</table>
</form>
</tr>
</table>
</body>";
}
If (isset($Speichern)) {
echo "<body bgcolor="#FFFFFF">
<table Border="2" width="100%" height="100%" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<form action="index.php" method="get">
<tr>
<td>
Der Datensatz wurde gespeichert!
<input type="submit" name="OK" value="OK">
</td>
</tr>
</table>
</form>
</body>";
}
If (isset($Löschen)) {
echo "<body bgcolor="#FFFFFF">
<table Border="2" width="100%" height="100%" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<form action="index.php" method="get">
<tr>
<td>
Der Datensatz wurde gelöscht!
<input type="submit" name="OK" value="OK">
</td>
</tr>
</table>
</form>
</body>";
}
@include('fuss.php');
?>
Die beiden Dateien Kopf1.php und Fuss1.php habe ich mir aber verkniffen zu schicken. Ich will hoffen, man kann jetzt erkennen wo das Problem ist.
Gruss Manfred