| (Web-) Design und webbasierte Sprachen Tipps & Tricks, Designabgleich, HTML & Javascript, Flash, ASP, PHP, Perl/CGI... |
Diskussion: Problem mit Formular senden auf PHP-Formmailer im Forum (Web-) Design und webbasierte Sprachen, in der Kategorie Web, Network & Multimedia Palace; Anzeige 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; ...
![]() |
| | #1 (permalink) |
| Registriert seit: 12.03.05 ![]() Likes: 0 | Anzeige 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> regsenden.php : PHP-Code: Aber irgendwie sendet's des net ab. Wo is der Fehler? Ich danke für antworten |
| | |
| | #2 (permalink) |
| Registriert seit: 14.11.04 ![]() Likes: 0 | 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)"> Code: <form name="FrontPage_Form1" action="http://cwnetx.com/party-timer/regsenden.php" method="POST" target="_self" onsubmit="return FrontPage_Form1_Validator(this)"> |
| | |
| HaBOT | - Anzeige - |
| |
| | #3 (permalink) |
| Themenstarter Registriert seit: 12.03.05 ![]() Likes: 0 | 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-Code: PHP-Code: 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 |
| | |
| | #4 (permalink) |
| Registriert seit: 14.11.04 ![]() Likes: 0 | 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. |
| | |
| | #5 (permalink) | |
| Registriert seit: 17.03.04 ![]() Likes: 2 | Zitat:
PHP-Code:
__________________ Mfg Basic Avid - Use it or be used! - | |
| | |
| | #6 (permalink) |
| Themenstarter Registriert seit: 12.03.05 ![]() Likes: 0 | 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 |
| | |
| | #7 (permalink) |
| Registriert seit: 17.03.04 ![]() Likes: 2 | Tagchen!! Also, ich würde die if-Anweisung mal auskommentieren und nur z.B. echo $_POST[email] ; 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".
__________________ Mfg Basic Avid - Use it or be used! - |
| | |
| | #8 (permalink) |
| Themenstarter Registriert seit: 12.03.05 ![]() Likes: 0 | also ich hab's jetzt erstmal so gemacht: PHP-Code: 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 |
| | |
| | #9 (permalink) |
| Senior Member Registriert seit: 18.09.05 ![]() Likes: 0 | Thagchen, metaweiterleitungen sind doof. Probiers mal mit der header() Funktion, unterkapitel Location. |
| | |
| | #10 (permalink) |
| Registriert seit: 17.03.04 ![]() Likes: 2 | @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-Code: Die header()-Funktion macht auch nichts anderes als die meta angabe! Die header()-Funktion sendet auch einen neuen header!
__________________ Mfg Basic Avid - Use it or be used! - |
| | |
![]() |
| - Anzeige - | |
| |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Anstelle Formular senden alle Daten über URL übergeben | SPaRXLi | (Web-) Design und webbasierte Sprachen | 5 | 27.11.07 15:54 |
| PHP Webspace für FormMailer | dabind | Code Kitchen | 0 | 23.04.06 01:00 |
| Problem mit Formular | cw125 | (Web-) Design und webbasierte Sprachen | 2 | 20.10.05 20:01 |
| pdf - Formular ausfüllen | ghost | Applikationen | 2 | 20.10.05 19:25 |
| Pc-Problem-Formular | YoFreak | Fun Section | 1 | 22.04.03 09:33 |