MENSAJE:
EMAIL:
A continuación el código utilizado:
EN EL ARCHIVO PHP
Código :
<? $name = $_POST['your_name']; $name = str_replace('&777&Your Name:','',$name); $tel = $_POST['telephone']; $tel = str_replace('&777&Telephone:','',$tel); $nachricht = $_POST['message']; $nachricht = str_replace('&777&Your Message:','',$nachricht); $email = $_POST['your_email']; $email = str_replace('&777&E-mail Address:','',$email); $empfaenger ='[email protected]'; $subject = 'Kontaktmail'; $mailout = '<html> <head> <title>Kontakt Mail</title> </head> <body> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" colspan="2"><h3>Neue Kontaktnachricht</h3></td> </tr> <tr> <td><b>Nachricht von:</b></td><td>'.$name.'</td> </tr> <tr> <td><b>Emailadresse:</b></td><td><a href="mailto:'.$email.'?subject=Ihre%20Kontaktanfrage">'.$email.'</a></td> </tr> <tr> <td><b>Telefonnummer:</b></td><td>'.$tel.'</td> </tr> <tr> <td colspan="2"><hr></td> </tr> <tr> <td colspan="2">'.$nachricht.'</td> </tr> </table> </body> </html> '; $headers .= 'X-Mailer: PHP/' . phpversion() . "\n"; $headers .= 'X-Sender-IP: ' . $REMOTE_ADDR . "\n"; $headers .= "Content-type: text/html\n"; $sende = @mail($empfaenger, $subject, $mailout, $headers); if($sende) { echo 'Ihre Kontaktanfrage wurde erfolgreich an uns übermittelt.<br>Wir setzen uns in kürze mit Ihnen in Verbindung.'; } else { echo 'Leider tauchte ein Fehler mit dem Senden Ihrer Kontaktanfrage auf.'; } ?>
EN EL FOTOGRAMA DE FLASH:
Código :
rec="[email protected]"; serv="php"; var fields_descriptions= Array ("", Array("t1", "your_name", "Your Name:"), Array("t2", "your_email", "Your Email:"), Array("t3", "telephone", "Telephone:"), Array("t4", "message", "Message:"), Array("t5", "field_2", "E-mail:"), Array("t6", "field_3", "Address:"), Array("t7", "field_4", "fax:") ); for (i=1; i<=fields_descriptions.length; i++) { this["k"+i].text=fields_descriptions[i][2]; }
EN EL BOTON DE ENVÍO :
Código :
on (rollOver) { this.gotoAndPlay("s1"); } on (releaseOutside, rollOut) { this.gotoAndPlay("s2"); } on (release) { for (i=1; i<_parent.fields_descriptions.length; i++) { if (_parent[_parent.fields_descriptions[i][1]]!=undefined) { this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2]; } } this.recipient=_parent.rec; i=undefined; getURL("contact.", "_blank", "POST"); }
Gracias de antemano.