Hallo und zwar habe ich ein Kontakt formular und ich möchte mit hilfe von
<select><option> das der besucher auf der hp auswählen kann an wen er die nachricht schickt schaut euch mal das kontakt form an ist halt auf italienisch hoffe das macht nix:
Code
<form name="Formular" method="post" action="#">
<table border=1 cellPadding=4 cellSpacing=2 align=center>
<tr>
<td>[b]Nome:[/b]</td>
<td><input type="text" name="vorname" size="35" maxlength="40"></td>
</tr>
<tr>
<td>[b]Cognome:[/b]</td>
<td><input type="text" name="nachname" size="35" maxlength="40"></td>
</tr>
<tr>
<td>[b]E-Mail:[/b]</td>
<td><input class="field" type="text" name="mail" size="35" maxlength="40"></td>
</tr>
<tr>
<td>[b]Ogetto:[/b]</td>
<td>
<input class="field" type="text" name="betreff" size="44" maxlength="60">
</p>
</td>
</tr>
<tr>
<td colspan="2">
[b]Spedire a
<select name="spedirea" size="1"><option>info@cacciatorisalandresi.com</option><option>webmaster@cacciatorisalandresi.com</option><option>rocco@cacciatorisalandresi.com</option><option>leo@cacciatorisalandresi.com</option></select>[/b]</td></tr>
<tr>
<td colspan=2>
[b]Messagio:[/b]
<textarea va name="nachricht" cols="47" rows="7" style="overflow-y:hidden">Scusa, Questo Servizio e al momento disativato !
[email]info@cacciatorisalandresi.com[/email] - Per Informazini & Co-
[email]webmaster@cacciatorisalandresi.com[/email] - Per Problemi e domande sull Sito
[email]rocco@cacciatorisalandresi.com[/email] - Rocco Loscalzo
[email]leo@cacciatorisalandresi.com[/email] - Leo D'Alessandro</textarea> </td>
</tr>
<tr>
<th colspan=2>
<input type="submit" name="gesendet" value="Invia">
*
<input type="reset" value="Cancella tutti i Campi"> </th>
</tr>
</table>
</form>
Alles anzeigen
Und hier die php datei die es senden soll.
:
PHP
<?php
$gesendet = $_POST['gesendet'];
$vorname = $_POST['vorname'];
$nachname = $_POST['nachname'];
$betreff = $_POST['betreff'];
$nachricht = $_POST['nachricht'];
$email = $_POST['email'];
$myemail ="webmaster@cacciatorisalandresi.com";
$homepage ="http://www.cacciatorisalandresi.com/";
if ($gesendet == "Absenden"){
$an ="info@cacciatorisalandresi.com";
$text ="Ciao Rocco Loscalzo e Leo DAlessandro,\n avete Ricevuto una E-Mail dall Sito $homepage da $vorname $nachname , con L Ogetto $betreff :\n\n
Messagio:
====
\n
$nachricht
\n====\
n\nPuoi rintracare $vorname $nachname con questo Indirizzo E-Mail: $email .
Formular Script Written by $myemail .";
mail($an,$betreff,$text,"From: ".$myemail);
echo "[b]Grazie per il Messagio e stato mandata a [email]info@cacciatorisalandresi.com[/email] ![/b]";
}
else
?>
Alles anzeigen
Wie muss ich diese Dateien verändern das es klappt?
Danke im Vorraus
Leo