Hat dir diese Antwort geholfen?
Also ich habe hier ein normales PHP-Script, in Flash.. Keine Ahnung wie das Aussehen würde..
formular.php (bei Änderung des Dateinamens muss man ebenfalls in mail.php den Dateinamen ändern in der Vorletzten Zeile
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>Musterkontakt</title>
<style type="text/css">
<!--
.kf_table {
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
}
a.kf_link:link, a.kf_link:visited, a.kf_link:hover {
font-family:Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
text-decoration: underline;
}
.kf_textfeld {
font-family:Arial, Helvetica, sans-serif;
font-size: 11px;
border-top: 0px;
border-bottom: 1px solid #000000;
border-left: 0px;
border-right: 0px;
background: whitesmoke;
width: 150px;
padding:2px
}
.kf_telfaxvorwahl {
font-family:Arial, Helvetica, sans-serif;
font-size: 11px;
border-top: 0px;
border-bottom: 1px solid #000000;
border-left: 0px;
border-right: 0px;
background: whitesmoke;
width: 50px;
padding:2px
}
.kf_telfaxnummer {
font-family:Arial, Helvetica, sans-serif;
font-size: 11px;
border-top: 0px;
border-bottom: 1px solid #000000;
border-left: 0px;
border-right: 0px;
background: whitesmoke;
width: 91px;
padding:2px
}
.kf_textarea {
font-family:Arial, Helvetica, sans-serif;
font-size: 11px;
border: 1px solid #000000;
background: whitesmoke;
width: 150px;
height: 120px;
overflow : hidden;
padding:2px
}
.kf_button {
font-family:Arial, Helvetica, sans-serif;
font-size: 11px;
border: 1px solid #000000;
background: whitesmoke;
width: 73px;
}
-->
</style>
<script language="JavaScript">
<!--
function check() {
if(document.kontakt.EMAIL.value=="") {
window.alert("Bitte eine E-Mail Adresse angeben!");
document.kontakt.EMAIL.select();
document.kontakt.EMAIL.focus();
return false;
}
zeichenketten=document.kontakt.EMAIL.value;
reg_ex5=/^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$/;
if(reg_ex5.test(zeichenketten))
{
return true;
}
else
{
alert("Bitte die E-Mail Adresse überprüfen!");
document.kontakt.EMAIL.select();
document.kontakt.EMAIL.focus();
return false;
}
}
//-->
</script>
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(51, 102, 255);">
<form
action="mail.php"
method="post">
<table class="kf_table" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td> </td>
<td><b>Kontaktformular</b> </td>
</tr>
<tr>
<td align="right">* Name: </td>
<td><input class="kf_textfeld" type="text" name="absender_name" size="20">
</td>
</tr>
<tr>
<td align="right">Alter: </td>
<td><input class="kf_textfeld" type="text" name="absalter" size="2"
maxlength="2"> </td>
</tr>
<tr>
<td align="right">* E-Mail: </td>
<td><input class="kf_textfeld" type="text" name="absmail"
size="20"> </td>
</tr>
<tr>
<td align="right">Homepage: </td>
<td><input class="kf_textfeld" type="text" name="absender_hp"
size="20"> </td>
</tr>
<tr>
<td align="right" valign="top">* Nachricht: </td>
<td><textarea class="kf_textarea" rows="6" name="mitteilung"
cols="20"></textarea> </td>
</tr>
<tr>
<td align="right"> </td>
<td><input class="kf_button" type="submit" value="Abschicken"> <input
class="kf_button" type="reset" value="Löschen" name="B1"> </td>
</tr>
<tr>
<td> </td>
<td>* Notwendige Angaben </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td></td>
</tr>
</tbody>
</table>
</form>
<br>
</body>
</html>
[code]
mail.php (bei Änderung des Dateinamens in kontakt.php den Dateinamen in [b]action="....."[/b] ändern)
[code]<?php
#Datei mail.php
$daten .= "Name: ".$_REQUEST['absender_name']."\r\n";
$daten .= "alter: ".$_REQUEST['absalter']."\r\n";
$daten .= "email: ".$_REQUEST['absmail']."\r\n";
$daten .= "Homepage: ".$_REQUEST['absender_hp']."\r\n";
$daten .= "Mitteilung: ".$_REQUEST['mitteilung']."\r\n";
mail("****@****.de","Kontaktformular", $daten,"From: ".$_REQUEST['absmail']."\r\n" . "Reply-To: ".$_REQUEST['absmail']."\r\n" ."X-Mailer: PHP/" . phpversion());
echo '<meta http-equiv="refresh" content="0; URL=kontakt.php">';
?>
[/code][/code]