Problem

Hallo,

hmm ich habe mir das auch nun mal angesehen und ich muss sagen, dass da wirklich keine Striche schief sind :suspekt:

Gruß Blümchen
 
Also irgendwie musst du doch den HTML Code in deiner php verarbeitet haben. Denn das " <table style="border-collapse: collapse;"> " gehört im Tabellen Abschnitt wo dein Kontakt Dingens ist.

Entweder ist ein <td></td> zuviel oder du solltest in der <table> noch "colspan=2" hinzufügen.Also so ungefähr:

<table colspan="2">
 
Ehm...Kann mir jemand den ganzen Code richtig also verändert hier posten?Weil sonst weiß ich nicht genau wo was rein kommt.
 
Probier mal:

Code:
<?php require "config.php"; ?>
<?php include ("check_online.php"); ?>
<?php require "design_s.php"; ?>
<?php
  $liste_on = mysql_query ("SELECT * FROM $mysql_table2");
  $rowx = mysql_fetch_array($liste_on);
  mysql_close($link);
?>

<?php include ($header); ?>

<br>
<br>
<div align="center"> 
  <table border="<?php echo($rowd[tablebordersize]) ?>" cellspacing="0" cellpadding="0" bordercolor="<?php echo($rowd[tablebordercolor]) ?>" width="800" bgcolor="<?php echo($rowd[tablecolor]) ?>">
    <tr> 
      <td colspan="2" bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>"> 
        <div align="center"><b>Kontakt</b></div></td>
    </tr>
    <tr> 
      <td bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>"> 
        <?php
if ((isset($_POST['send'])) && (!empty($_POST['fromaddress'])) && (!empty($_POST['subject'])) && (!empty($_POST['text'])))
{
  mail("konstl@st-bz.de",$_POST['subject'],$_POST['text'],"From: ".$_POST['fromaddress']);
}
?>
<form method="post" action="kontakt.php">
<tr>
<td width='48%'>Deine eMail:</td>
        <td width='52%'> <input type="text" name="fromaddress"><br>
</tr>
</td>
<tr> 
        <td width='48%'>Betreff:</td>
        <td width='52%'>
<input type="text" name="subject"><br>
</tr>
</td>
<tr>
<tr> 
        <td width='48%'>Nachricht:</td>
        <td width='52%'>
<textarea name="text"></textarea><br>
<center>
<input type="submit" name="send" value="Abschicken"> </td></center>
    </tr>
  </table>
  </div>
<?php include($footer); ?>


Hatte mich vertan das " colspan="2"" kommt ja in die <td> dingens, probier mal den Code da oben.
 
Nein.Ist egal, bin schon drauf gekommen.Aber leider ist doch noch ein Fehler, ich habe das ganze mal kurz im Internet Expl. betrachtet und da ist doch noch der Rand auf der rechten Seite einmal dicker einmal dünner,usw. kann man das auch noch ändern?
 
Also ich glaub dein Fehler hab ich rausgebügelt:

Code:
<?php require "config.php";
include ("check_online.php");
require "design_s.php";

  $liste_on = mysql_query ("SELECT * FROM $mysql_table2");
  $rowx = mysql_fetch_array($liste_on);
  mysql_close($link);

include ($header);

if ((isset($_POST['send'])) && (!empty($_POST['fromaddress'])) && (!empty($_POST['subject'])) && (!empty($_POST['text'])))
{
  mail("konstl@st-bz.de",$_POST['subject'],$_POST['text'],"From: ".$_POST['fromaddress']);
}
?>

<br>
<br>
<div align="center"> 
<form method="post" action="kontakt.php">
  <table width="800" border="<?php echo($rowd[tablebordersize]) ?>" align="center" cellpadding="0" cellspacing="0" bgcolor="<?php echo($rowd[tablecolor]) ?>">
    <tr> 
      <td colspan="2" bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>"> 
        <div align="center"><b>Kontakt</b></div></td>
    </tr>
    <tr> 
      <td bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>"> 


<tr>
<td width='50%'>Deine eMail:</td>
        <td width='50%'> <input type="text" name="fromaddress"></td><br>
</tr>

<tr> 
        <td width='50%'>Betreff:</td>
        <td width='50%'><input type="text" name="subject"><br></td>
</tr>

<tr>
<tr> 
        <td width='50%'>Nachricht:</td>
        <td width='50%'><textarea name="text"></textarea><br>

<input type="submit" name="send" value="Abschicken"></td>

    </tr>
  </table>
</form>
<?php include($footer); ?>

Probier aber nochmal den Code hier:

Code:
<?php require "config.php"; ?>
<?php include ("check_online.php"); ?>
<?php require "design_s.php"; ?>
<?php
  $liste_on = mysql_query ("SELECT * FROM $mysql_table2");
  $rowx = mysql_fetch_array($liste_on);
  mysql_close($link);
?>

<?php include ($header); ?>

        <?php
if ((isset($_POST['send'])) && (!empty($_POST['fromaddress'])) && (!empty($_POST['subject'])) && (!empty($_POST['text'])))
{
  mail("konstl@st-bz.de",$_POST['subject'],$_POST['text'],"From: ".$_POST['fromaddress']);
}
?>

<br>
<br>
<div align="center"> 
<form method="post" action="kontakt.php">
  <table width="800" border="<?php echo($rowd[tablebordersize]) ?>" align="center" cellpadding="4" cellspacing="0" bgcolor="<?php echo($rowd[tablecolor]) ?>">
    <tr> 
      <td colspan="2" bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>"> 
        <div align="center"><b>Kontakt</b></div></td>
    </tr>
    <tr> 
      <td bordercolor="<?php echo($rowd[tablecolor]) ?>" bgcolor="<?php echo($rowd[tablecolor]) ?>"> 


<tr>
<td width='50%'>Deine eMail:</td>
        <td width='50%'> <input type="text" name="fromaddress"></td><br>
</tr>

<tr> 
        <td width='50%'>Betreff:</td>
        <td width='50%'><input type="text" name="subject"><br></td>
</tr>

<tr>
<tr> 
        <td width='50%'>Nachricht:</td>
        <td width='50%'><textarea name="text"></textarea><br>

<input type="submit" name="send" value="Abschicken"></td>

    </tr>
  </table>
</form>
<?php include($footer); ?>

Ich hab dein ganzen HTML aus gebessert. Ich frage mich mit was für ein Editor du den gemacht hast. Also ich empfehle dir Macromedia Dreamweaver 2004, er ist auch nicht perfekt aber gibt nen sauberen Code.
 
Zuletzt bearbeitet:
Zurück