OK Klasse, nun habe ich eins erstellen lassen.
Dies habe ich dann in eine leere html seite eingefügt. Geht aber nicht. Wie oder womit geht das in html umzuwandeln ?
Habe nun schon etliche HTML Formulare gefunden, leider aber nur keines wo so eine Sicherheitssperre für SPAM dabei ist, (ich meine, dass man vorm Senden einen vorgegebenen Code eingeben muss 7486c oder so ähnlich) hoffe liege da mit meiner Erklärung so einigermaßen richtig ?
<!-- .......................................................................... -->
<!-- Anfang Formular -->
<!-- .......................................................................... -->
<?php
$formularAnzeigen = false;
if (!empty($_POST[senden]) && ( empty($_POST
) || empty($_POST[nachricht]))) {$formularAnzeigen = true;echo-><span style=color: #FF0000; font-size: x-large;>Bitte alle Pflichtfelder ausfuellen.</span>';} else if (!empty($_POST[senden]) && !isEmail($_POST[eMail])) {$formularAnzeigen = true;echo-><span style=color: #FF0000; font-size: x-large;>Die E-Mail-Adresse ist nicht korrekt.</span>';} else if (empty($_POST[senden])) {$formularAnzeigen = true;} if ($formularAnzeigen) {?><form name=kontaktFormular method=post action=<?=$_SERVER[PHP_SELF]; ?> onSubmit=return isValid()><table width=800 border=0><tr><td>&nbsp;</td><td><strong></strong></td><td><input name=vorName type=text value=<?=$_POST['vorName']; ?> /></td><td>
&nbsp;</td></tr><tr>
<td><div align=center>*</div></td><td><strong></strong></td><td><input name=eMail type=text id=eMail value=<?=$_POST['eMail']; ?> /></td><td>zB: [email][email protected],
[email protected]</td></tr><tr><td>&nbsp;</td><td><strong></strong></td><td><input name=betreff1 type=text id=betreff1 value=<?=$_POST['betreff1']; ?> size=50 /></td><td>&nbsp;</td></tr><tr><td><div align=center>*</div></td><td><strong></strong></td><td><textarea name=nachricht cols=40 rows=10><?=$_POST['nachricht']; ?></textarea></td><td> &nbsp; </td></tr><!--ende nachricht--> <tr> <td colspan=3> <div align=center> <input name=senden type=submit value=Senden /> </div> </td> <td>&nbsp;</td> </tr> </table></form>
<?php
echo'<a href=
http://www.peuss.com/PHP/KontaktFormularGenerator>KontaktFormularGenerator</a>'; } else { $eMail =->
'.$_POST['vorName'].'
'.$_POST['eMail'].'
'.$_POST['betreff1'].'
'.$_POST['nachricht'].'';if (@mail(
[email protected],
Neue Nachricht vom Kontaktformular,
$eMail)) {echo Vielen Dank f�r deine Nachricht !
Sie wird umgehend von uns beantwortet !!
Ride Free
Gru�
MF NDSB<br />; } else {echo E-Mail-Verkehr funktioniert zur Zeit nicht<br />;}if ($_POST['kopie']) {if (@mail($_POST['eMail'],
KONTAKTFORMULAR
MF NIEDERSACHSEN BIKER,$eMail)) {echo <br />;}}}function isEmail($email) {$nonascii = \x80-\xff; $nqtext = [^\\$nonascii\015\012\];$qchar = \\[^$nonascii]; $protocol = (?:mailto
; $normuser = [a-zA-Z0-9][a-zA-Z0-9_.-]*;$quotedstring = \(?:$nqtext|$qchar)+\; $user_part = (?:$normuser|$quotedstring); $dom_mainpart = [a-zA-Z0-9][a-zA-Z0-9._-]*\.; $dom_subpart = (?:[a-zA-Z0-9][a-zA-Z0-9._-]*\.)*; $dom_tldpart = [a-zA-Z]{2,5}; $domain_part = $dom_subpart$dom_mainpart$dom_tldpart; $regex = $protocol?$user_part\@$domain_part; if (preg_match(/^$regex$/,$email)) { return true; } return false; }
?>
<!-- ............................................................... -->
<!-- Ende KontaktFormular -->
<!-- ............................................................... -->