Problem mit Formular senden auf PHP-Formmailer

Hi, hab mal wieder ein Problem:

Ich hab ein Formular
Code:
<html>

<head>
<meta http-equiv="Content-Language" content="de">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Party Registry</title>
<style type="text/css">
body {background-color:#000000; font-family: "Arial";}
h1.farbig {color:#000000; font-family:Arial; font-size:px;}
td.farbig {; color:#000000; font-family:Arial; font-size:12px;}
p.farbig {color:#000000; font-family:Arial; font-size:12px;}
p.anno {color:#000000; font-family:Arial; font-size:12px;}
</style>
</head>

<body bgcolor="#000000" text="#000000">

<table border="0" width="95%" height="95%">
  <tr>
    <td width="100%" align="center"><img border="0"
    src="http://www.akustisch-nicht-verstanden.de/cgi-bin/zaehler.cgi?datum&zs=i"><font
    color="#FFFFFF" size="4"><br>
    </font><i><b><font face="Arial" color="#ffffff" size="6"><span
    style="background-color: #330000"> </span><span style="background-color: #800000"> </span><span
    style="background-color: #990000"> </span></font><font face="Arial" color="#FFFFFF"
    size="6"><span style="background-color: #CC0000">Party Registry</span></font><font
    face="Arial" color="#ffffff" size="6"><span style="background-color: #990000"> </span><span
    style="background-color: #800000"> </span><span style="background-color: #330000"> </span></font></b></i>></td>
  </tr>
  <tr>
    <td width="100%" align="center"><i><font size="4" color="#CC0000" face="Arial">Tragt bitte
    hier eure Infos über die  Partys ein!</font></i></td>
  </tr>
  <tr>
    <td width="100%" align="center"><form name="FrontPage_Form1"
    action="mailto:%20reg@party-timer.com" method="POST" target="_self"
    onsubmit="return FrontPage_Form1_Validator(this)">
      <input type="hidden" name="url" value="http://www.party-timer.com/regdanke.htm"><input
      type="hidden" name="email" value="reg@party-timer.com"><div align="center"><center><table
      cellpadding="3" cellspacing="2" width="488">
        <tr>
          <td class="farbig" align="left" width="158"><i><b><font size="4" color="#CC0000"
          face="Arial">Betreff:</font></b></i></td>
          <td class="farbig" width="272" align="center"><div align="left"><p><font color="#FFFFFF"
          face="Arial"><i><b><select name="Betreff" size="1">
            <option>Live-Konzert </option>
            <option> 1Euro-Fete </option>
            <option> Party mit DJ </option>
            <option>Party</option>
            <option>Regelmäßiger Treff</option>
            <option>Cocktailparty</option>
            <option>Sonstiges</option>
            <option>Bars & Co.</option>
          </select></b></i></font></td>
        </tr>
        <tr>
          <td class="farbig" align="left" width="158"><i><b><font size="4" color="#CC0000"
          face="Arial">Datum:</font></b></i></td>
          <td class="farbig" width="272" align="center"><div align="left"><p><font color="#FFFFFF"
          face="Arial"><i><b><select size="1" name="Tag">
            <option>1 </option>
            <option> 2 </option>
            <option> 3 </option>
            <option>4</option>
            <option>5</option>
            <option>6</option>
            <option>6</option>
            <option>7</option>
            <option>8</option>
            <option>9</option>
            <option>10</option>
            <option>11</option>
            <option>12</option>
            <option>13</option>
            <option>14</option>
            <option>15</option>
            <option>16</option>
            <option>17</option>
            <option>18</option>
            <option>19</option>
            <option>20</option>
            <option>21</option>
            <option>22</option>
            <option>23</option>
            <option>24</option>
            <option>25</option>
            <option>26</option>
            <option>27</option>
            <option>28</option>
            <option>29</option>
            <option>30</option>
            <option>31</option>
          </select><select name="Monat" size="1">
            <option>Januar </option>
            <option> Februar </option>
            <option> März </option>
            <option>April</option>
            <option>Mai</option>
            <option>Juni</option>
            <option>Juli</option>
            <option>August</option>
            <option>September</option>
            <option>Oktober</option>
            <option>November</option>
            <option>Dezember</option>
          </select><select name="Jahr" size="1">
            <option>2005 </option>
            <option> 2006 </option>
          </select></b></i></font></td>
        </tr>
        <tr align="center">
          <td class="farbig" align="left" width="122"><i><b><font size="4" color="#CC0000"
          face="Arial">Titel:</font></b></i></td>
          <td class="farbig" width="268" align="center"><font color="#FFFFFF"><i><b><!--webbot
          bot="Validation" startspan S-Data-Type="String" B-Allow-Letters="TRUE"
          B-Allow-Digits="TRUE" B-Allow-WhiteSpace="TRUE" S-Allow-Other-Chars=". ,"
          B-Value-Required="TRUE" I-Minimum-Length="5" I-Maximum-Length="50" --><!--webbot
          bot="Validation" endspan --><input type="text" name="Titel" value size="42" maxlength="50"></b></i></font></td>
        </tr>
        <tr align="center">
          <td class="farbig" align="left" width="158"><i><b><font size="4" color="#CC0000"
          face="Arial">Einlasszeit:</font></b></i></td>
          <td class="farbig" width="272" align="center"><font color="#FFFFFF" face="Arial"><i><b><!--webbot
          bot="Validation" startspan S-Data-Type="String" B-Allow-Letters="TRUE"
          B-Allow-Digits="TRUE" B-Allow-WhiteSpace="TRUE" S-Allow-Other-Chars=". ,"
          B-Value-Required="TRUE" I-Minimum-Length="5" I-Maximum-Length="50" --><!--webbot
          bot="Validation" endspan --><input type="text" name="Einlasszeit" value size="42"
          maxlength="50"></b></i></font></td>
        </tr>
        <tr align="center">
          <td class="farbig" align="left" width="158"><i><b><font size="4" color="#CC0000"
          face="Arial">Eintrittspreis:</font></b></i></td>
          <td class="farbig" width="272" align="center"><div align="left"><p><font color="#FFFFFF"
          face="Arial"><b><i><select name="Eintritt" size="1">
            <option> Kostenpflichtig </option>
            <option>Gratis </option>
          </select><!--webbot bot="Validation" startspan S-Data-Type="String"
          B-Allow-Letters="TRUE" B-Allow-Digits="TRUE" B-Allow-WhiteSpace="TRUE"
          S-Allow-Other-Chars=". ," B-Value-Required="TRUE" I-Maximum-Length="4" --><!--webbot
          bot="Validation" endspan --><input type="text" name="Eintrittspreis" size="5"
          maxlength="4"> </i><font size="3">Euro</font></b></font></td>
        </tr>
        <tr align="center">
          <td class="farbig" align="left" width="158"><i><b><font size="4" color="#CC0000"
          face="Arial">Location:</font><font size="3"><br>
          </font><font size="2" color="#808080" face="Arial">mit PLZ oder Wegbeschreibung!</font></b></i></td>
          <td class="farbig" width="272" align="center"><font color="#FFFFFF" face="Arial"><i><b><!--webbot
          bot="Validation" startspan B-Value-Required="TRUE" I-Minimum-Length="5"
          I-Maximum-Length="2000" --><!--webbot bot="Validation" endspan --><textarea
          name="Location" cols="35" rows="3"></textarea> </b></i></font></td>
        </tr>
        <tr valign="top" height="25" align="center">
          <td class="farbig" align="left" width="158"><i><b><font color="#CC0000" size="4"
          face="Arial">Info:</font><font face="Arial" color="#C0C0C0" size="2"><br>
          </font><font size="2" color="#808080" face="Arial">-Wer tritt auf<br>
          -Besondere Aktionen<br>
          -Getränkepreise<br>
          -usw...</font></b></i> <p> </td>
          <td class="farbig" width="272" align="center"><font color="#FFFFFF" face="Arial"><i><b><!--webbot
          bot="Validation" startspan B-Value-Required="TRUE" I-Minimum-Length="5"
          I-Maximum-Length="2000" --><!--webbot bot="Validation" endspan --><textarea
          name="Information" cols="35" rows="9"></textarea> </b></i></font></td>
        </tr>
        <tr align="center">
          <td class="farbig" align="left" width="158"><i><b><font color="#CC0000" size="4"
          face="Arial">Veranstalter:</font><font face="Arial" color="#C0C0C0" size="3"><br>
          </font><font face="Arial" size="2" color="#808080">wenn möglich E-Mail Homepage oder
          Ansprechpartner!</font></b></i></td>
          <td class="farbig" width="272" align="center"><font color="#FFFFFF" face="Arial"><i><b><!--webbot
          bot="Validation" startspan B-Value-Required="TRUE" I-Minimum-Length="5"
          I-Maximum-Length="2000" --><!--webbot bot="Validation" endspan --><textarea
          name="Veranstalter" cols="35" rows="2"></textarea> </b></i></font></td>
        </tr>
        <tr align="center">
          <td class="farbig" align="left" width="158"><i><b><font color="#CC0000" size="4"
          face="Arial">Sonstiges:</font></b></i></td>
          <td class="farbig" width="272" align="center"><font color="#FFFFFF" face="Arial"><i><b><input
          type="text" name="Sonstiges" value size="42"></b></i></font></td>
        </tr>
        <tr align="center">
          <td align="left" width="158"></td>
          <td width="272" align="center"><div align="left"><p><font color="#FFFFFF" face="Arial"><i><b><input
          type="submit" name="senden" value="Registry"><input type="reset" name="next1"
          value="Zurücksetzen"></b></i></font></td>
        </tr>
      </table>
      </center></div>
    </form>
    <p align="center"> </td>
  </tr>
  <tr>
    <td width="100%" align="center"><p align="center"><font color="#FFFFFF" size="4"
    face="Arial">Ihr könnt eure <b><i>Partynews</i></b> und <b><i>Flyer</i></b> auch per
    E-Mail schicken!</font></p>
    <p align="center"><a href="mailto:reg@party-timer.com"><font size="5" face="Arial"
    color="#FFFFFF">reg@party-timer.com</font></a></td>
  </tr>
</table>
</center></div>

<p align="center"> </p>
</body>
</html>

dass die Daten an http://cwnetx.com/party-timer/regsenden.php sendet. ( bzw. senden soll[te] ... )

regsenden.php :
PHP:
<?

if (isset($senden) && $senden == "senden")
{

// send ma's mal ab ...
mail("$email", "Party-Reg - $betreff am $Tag . $Monat ", "/n PARTY-TIMER.COM - Party Registration /n /n Hi, Is mal wieder ne Party-Registration da: /n Betreff: $Betreff /n $Titel am $Tag - $Monat - $Jahr /n  /n Preis: $Eintritt - $Eintrittspreis Euro. /n Wo? - $Location // Einlasszeit: $Einlasszeit // Veranstalter: $Veranstalter /n -- Allgemeine Infos: --- /n $Information /n Sonstiges: $Sonstiges ----------------------- /n /n Party-Timer.com - Party Registration", "From: admin@party-timer.com\nX-Mailer: PHP/" . phpversion());
exit;
}

?>


Aber irgendwie sendet's des net ab.

Wo is der Fehler?

Ich danke für antworten
 
also erstmal muss da statt:
Code:
<form name="FrontPage_Form1"     action="mailto:%20reg@party-timer.com" method="POST" target="_self"     onsubmit="return FrontPage_Form1_Validator(this)">

das hier hin:

Code:
<form name="FrontPage_Form1"     action="http://cwnetx.com/party-timer/regsenden.php" method="POST" target="_self"     onsubmit="return FrontPage_Form1_Validator(this)">

und dann muss das regsenden.php so aussehen das alle Variable die du vom Forumal übergeben hast so aussehen z.B. $_POST['email']
 
ja sry, klar mit dem action an resenden.php ... ich hab das falsche formular da rein kopiert ...

aber wie: $_POST['email'] ?

Meinst du 1. so:
PHP:
<?

if (isset($senden) && $senden == "senden")
{

mail("$_POST['email']", "Party-Reg - $betreff am $Tag . $Monat ", "/n PARTY-TIMER.COM - Party Registration /n /n Hi, Is mal wieder ne Party-Registration da: /n Betreff: $Betreff /n $Titel am $Tag - $Monat - $Jahr /n  /n Preis: $Eintritt - $Eintrittspreis Euro. /n Wo? - $Location // Einlasszeit: $Einlasszeit // Veranstalter: $Veranstalter /n -- Allgemeine Infos: --- /n $Information /n Sonstiges: $Sonstiges ----------------------- /n /n Party-Timer.com - Party Registration", "From: admin@party-timer.com\nX-Mailer: PHP/" . phpversion());
exit;
}

?>

oder so:

PHP:
<?

if (isset($senden) && $senden == "senden")
{

mail("$_POST['email']", "Party-Reg - $_POST['betreff'] am $Tag . $Monat ", "/n PARTY-TIMER.COM - Party Registration /n /n Hi, Is mal wieder ne Party-Registration da: /n Betreff: $Betreff /n $Titel am $Tag - $Monat - $Jahr /n  /n Preis: $Eintritt - $Eintrittspreis Euro. /n Wo? - $Location // Einlasszeit: $Einlasszeit // Veranstalter: $Veranstalter /n -- Allgemeine Infos: --- /n $Information /n Sonstiges: $Sonstiges ----------------------- /n /n Party-Timer.com - Party Registration", "From: admin@party-timer.com\nX-Mailer: PHP/" . phpversion());
exit;
}

?>

aber dann müsste es doch wenigstens ne mail schicken.
ich hab das $email auch am anfang durch die mailadresse ersetzt ...

und wie bekomm ich's hin, das es sofort nach 0 sec zu $url weiterleitet?

cw
 
Also alles was von dem Formular an das PHP Script geschickt wird muss mit $_POST['Variable'] im Empfang Script dekladiert werden.

Also z.B. steht in deinem Formular: <input type="text" name="Sonstiges" value size="42">
dann muss es im PHP Script so aussehen: $_POST['Sonstiges']
diese Variable enthält dann die Werte die voher im Formular eingegeben und abgschickt wurden.

Achja und schon wegen dem if (isset($senden) && $senden == "senden") geht das ganze schon garnet da die If Bedignung garnicht erfüllt werden kann.
 
und wie bekomm ich's hin, das es sofort nach 0 sec zu $url weiterleitet?
PHP:
echo "<head><meta http-equiv=\"Refresh\" content=\"1; URL=./irgendwo/holen.htm\"></head>";

Hiermit! Die 1 sagt nach wie vielen Sekunden Du weitergeleitet wirst! Und bei URL musst halt noch die URL eintragen wo es hingehen soll!!!
 
ok ... also bei allem so: $_POST['Tag'] u.s.w ...

und wie is des mit dem senden?

bei anderen mailern hat des so auch geklappt ...

@BasicAvid: Danke, werd ich mal ausprobieren.

cw
 
Tagchen!!
Also, ich würde die if-Anweisung mal auskommentieren und nur z.B.
echo $_POST ; ausgeben lassen!
Dann noch ein Tipp schreibe hinter die mail() Funktion or die("Konnte EMail nicht senden!").
Und aus Sicherheitsgründen, würde ich falls Du Felder dabei hast welche nur Zahlen aufnehmen sollen, es so machen: $int = (int) $_POST[integer_var];
Das ist besonders wichtig falls Du Daten mit GET übergibst und Sie dann mit $_GET wieder weiter "verarbeitest".
 
also ich hab's jetzt erstmal so gemacht:
PHP:
  <?
// if (isset($senden) && $senden == "senden")  
// {    echo "<head><meta http-equiv=\Refresh\ content=\0; URL=http://www.party-timer.com/regdanke.htm></head>;
     mail("reg@party-timer.com", "Party-Reg - $_POST[betreff] am $_POST[Tag] . $_POST[Monat] ", "/n PARTY-TIMER.COM - Party Registration /n /n Hi, Is mal wieder ne Party-Registration da: /n Betreff: $_POST[betreff] /n $_POST[Titel] am $_POST[Tag] - $_POST[Monat] - $_POST[Jahr] /n  /n Preis: $_POST[Eintritt] - $_POST[Eintrittspreis] Euro. /n Wo? - $_POST[Location] // Einlasszeit: $_POST[Einlasszeit] // Veranstalter: $_POST[Veranstalter] /n -- Allgemeine Infos: --- /n $_POST[Information] /n Sonstiges: $_POST[Sonstiges] ----------------------- /n /n Party-Timer.com - Party Registration", "From: admin@party-timer.com\nX-Mailer: PHP/" . phpversion());  exit;
  }  
  ?>

WArum kommt dann:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /www/htdocs/v132055/party-timer/regsenden.php on line 13 ( das ist die "mail" zeile ) - Was ist da falsch? bzw. welches "," / ";" ist falsch?

@BasicAvid: ok, if ist auskelammert.Aber: Weiterleiten tut's nicht.
und wohin mit dem $int... und die Zahlen wie $Tag also statt $_POST[Tag] , $_GET[Tag) nehmen?

cw
 
@cw125

Der Parse Error sagt aus dass Du die zweite geschweifte Klammer deiner if-Anweisung nicht auskommentiert hast und Du hast falls Du den Code kopiert hast also der org. ist dann musst bei der echo "<head>..."; Anweisung hinten auch ein " machen. Und die meta weiterleitung musst nach deiner Mail anweisung schreiben!!

Und eigentlich meinte ich das ganze so:

PHP:
/* if (isset($senden) && $senden == "senden")  
{   
     mail("reg@party-timer.com", "Party-Reg - $_POST[betreff] am $_POST[Tag] . $_POST[Monat] ", "/n PARTY-TIMER.COM - Party Registration /n /n Hi, Is mal wieder ne Party-Registration da: /n Betreff: $_POST[betreff] /n $_POST[Titel] am $_POST[Tag] - $_POST[Monat] - $_POST[Jahr] /n  /n Preis: $_POST[Eintritt] - $_POST[Eintrittspreis] Euro. /n Wo? - $_POST[Location] // Einlasszeit: $_POST[Einlasszeit] // Veranstalter: $_POST[Veranstalter] /n -- Allgemeine Infos: --- /n $_POST[Information] /n Sonstiges: $_POST[Sonstiges] ----------------------- /n /n Party-Timer.com - Party Registration", "From: admin@party-timer.com\nX-Mailer: PHP/" . phpversion());
 echo "<head><meta http-equiv=\Refresh\ content=\0; URL=http://www.party-timer.com/regdanke.htm></head>"; // Hier hast Du das Anführungszeichen vergessen!!
  exit;
  }*/

echo $_POST[betreff],"<br/>"; 
echo $_POST[Location],"<br/>" ;  // usw.. 
// Damit  Du überhaupt mal siehst ob was übertragen wird!!!

@[starfoxx]
Die header()-Funktion macht auch nichts anderes als die meta angabe! Die header()-Funktion sendet auch einen neuen header!
 
hi, hab das problem mit einem simplen
PHP:
include("http://www.party-timer.com/regdanke.htm");
gelöst.

Aber senden tut's das trotzdem nicht ... ;-/ Warum?
( auf der Seite wird der Text schon dargestellt... )
 
Zurück
Oben