| | | | |
| |||||||
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Benutzer Registriert seit: 10.03.2005
Beiträge: 44
![]() | Hallo ich habe ein Formular gebaut und möchte es jetzt mit php versenden. Ich habe auf der Seite http://www.drweb.de/php/php_formulare.shtml eine Vorlage gefunden die auch gut funktioniert jetzt möchte ich halt das vorhanden php Script aus mein Formular anpassen leider weiß ich nicht so genau was und wie ich die Variablen hier Code: while(list($name,$value)=each($HTTP_POST_VARS)) {
$message.="$name: $value\n\n";
Das ganze Script sieht so aus Code: <?php
$admin = "irgendwas@gmx.de";
$subject = "PHP-Mail";
$message = "Nachricht fuer $admin von $email:\n\n";
while(list($name,$value)=each($HTTP_POST_VARS)) {
$message.="$name: $value\n\n";
}
mail($admin,$subject,$message,"From: $email");
?>
Code: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>NAme</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<form method="post" action="send.php">
<table width="987">
<tr>
<td></td>
<td width="437">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main">Ihre persönlichen Daten</td>
<td class="inputRequirement" align="right">* Notwendige
Eingabe</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td valign="top" class="main" width="63">Anrede:</td>
<td valign="top" class="main">
<select size="1" name="Anrede">
<option selected value="Frau">Frau</option>
<option value="Herr">Herr</option>
</select><span class="inputRequirement"> *</span></td>
</tr>
<tr>
<td class="main">Vorname:</td>
<td class="main">
<input type="text" name="vorname">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Nachname:</td>
<td class="main">
<input type="text" name="nachname">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Strasse/Nr.:</td>
<td class="main">
<input type="text" name="Strassenr">
<span class="inputRequirement">* </span>
</td>
</tr>
<tr>
<td class="main">PLZ:</td>
<td class="main">
<input type="text" name="PLZ">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Ort:</td>
<td class="main">
<input type="text" name="ort">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">E-Mail-Adresse:</td>
<td class="main">
<input type="text" name="email">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Tel:</td>
<td class="main">
<input type="text" name="tel"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2" id="table2">
<tr>
<td class="main">Ihre Maße in cm</td>
<td class="inputRequirement" align="right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox" id="table3">
<tr class="infoBoxContents">
<td>
<table border="0" cellspacing="2" cellpadding="2" id="table4">
<tr>
<td class="main">Brustumfang:</td>
<td class="main">
<input type="text" name="brustumfang" size="12">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Taillienumfang:</td>
<td class="main">
<input type="text" name="taillienumfang" size="12">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Hüftumfang:</td>
<td class="main">
<input type="text" name="hueftumfang" size="12">
<span class="inputRequirement">* </span>
</td>
</tr>
<tr>
<td class="main">Arm Länge:</td>
<td class="main">
<input type="text" name="armlaenge" size="12">
<span class="inputRequirement">* </span>
</td>
</tr>
<tr>
<td class="main">Oberarm Umfang:</td>
<td class="main">
<input type="text" name="oberarmunfang" size="12">
<span class="inputRequirement">*</span></td>
</tr>
<tr>
<td class="main">Schulter</td>
<td class="main">
<input type="text" name="schulter" size="12">
<span class="inputRequirement">*</span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2" id="table2">
<tr>
<td class="main">Model, Mitteilung</td>
<td class="inputRequirement" align="right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox" id="table3">
<tr class="infoBoxContents">
<td>
<table border="0" cellspacing="2" cellpadding="2" id="table4">
<tr>
<td class="main">Model:</td>
<td class="main">
<input type="text" name="model" size="12">
<span class="inputRequirement">* Bitte geben
Sie hier die Artikel-Nr: ein </span></td>
</tr>
<tr>
<td class="main">Mitteilung:</td>
<td class="main">
<textarea name="mitteilung" rows="8" cols="27">
</textarea></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</p>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox" id="table3">
<tr class="infoBoxContents">
<td>
<table border="0" cellspacing="2" cellpadding="2" id="table4" width="170">
<tr>
<td class="main" width="120">
<input type="image" src="abschicken.gif" alt="Abschicken"></td>
<td class="main" width="120">
<input type="image" src="loeschen.gif" alt="reset">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="431"></td>
</tr>
</table>
</form>
</body>
</html>
|
| |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Javascript: GET Variable aus Iframe auslesen | R4v3r | HTML, Usability und Barrierefreiheit | 4 | 08.05.2009 13:16 |
| Variable durch 2. Variable bestimmen | Quagga | PHP Tipps 2005-2 | 11 | 26.10.2005 17:34 |
| Variable aus Formular auslesen .. | PHP Tipps 2005-2 | 10 | 25.10.2005 15:48 | |
| Wer in Variable mit $_GET auslesen. | Marian | PHP Tipps 2005-2 | 15 | 22.10.2005 22:40 |
| Formular auslesen mit PHP -> Variable mehrfach aúsgeben | DDogg | PHP Tipps 2005 | 2 | 21.04.2005 13:16 |
| Variable übergeben (auslesen) | PHP Tipps 2005 | 10 | 16.02.2005 22:42 | |
| Auslesen Tabelleneintrag über zugewiesene Variable in Datei | PHP Tipps 2005 | 14 | 14.02.2005 19:04 | |
| Variable in einer Variable | Beatbox | PHP Tipps 2005 | 7 | 15.01.2005 15:55 |
| Warum wird Variable nicht übergeben??? | Anuschka | PHP Tipps 2005 | 2 | 06.01.2005 13:22 |
| Variable in auslesen und dann in die DB schreiben | PHP Tipps 2004-2 | 1 | 11.12.2004 03:25 | |
| Text zu Variable und diese Auslesen | PHP-Fortgeschrittene | 4 | 24.08.2004 22:43 | |
| variable auslesen? | PHP Tipps 2004 | 12 | 07.08.2004 08:14 | |
| Variable auslesen | PHP Tipps 2004 | 2 | 06.08.2004 18:47 | |
| Variable von .txt Datei auslesen | PHP Tipps 2004 | 1 | 01.07.2004 11:18 | |
| Variable %username% auslesen und übergeben | PHP Tipps 2004 | 5 | 25.06.2004 13:09 | |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.