Hallo,
>
> Ich will aus dem Formular an der Seite :
> <!-- m --><a class="postlink" href="http://www.vinyly.ic.cz/form_cz_flashplayer_imagerotator.htm">http://www.vinyly.ic.cz/form_cz_flashpl ... otator.htm</a><!-- m -->
> an <!-- e --><a href="mailto:vinyl2006@seznam.cz">vinyl2006@seznam.cz</a><!-- e --> (fix email Adresse)
> und zugleich an eine variable Adresse (nach dem was im Formular
> Adressfeld wird) die Formulardaten absenden. Ich versuchte es schon durch viele > Kombinationen aber leider nichts hat geholfen.(siehe unten)
> Vielen Dank fur jede Hilfe im Voraus.
>
> Roman
> ---------------------------------------------------------------------------------------------------------------------
> Beispiele von Kodes die funktionieren und die nicht funktionieren :
> <!-- m --><a class="postlink" href="http://www.vinyly.ic.cz/processor.php_unworking_working_script.txt">http://www.vinyly.ic.cz/processor.php_u ... script.txt</a><!-- m -->
> ------------------------
> processor.php_unworking_working_script
> -------------------------------
>
> This is an example of UNWORKING script (mail functions are behind each other):
>
> <?php
> $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
> $headers = " text/plain; charset=utf-8\n";
> mail("vinyl2006@seznam.cz","formular - vinyly.ic.cz");
> mail($_POST['field'],"formular - vinyly.ic.cz");"Form data:
> username: " . $_POST['field_1'] . " Email: " . $_POST['field_2'] . " Telefon: " . $_POST['field_3'] . " Země: " . $_POST['field_4'] . " Zpráva: " . $_POST['field_5'] . " Jaký je rok? (Pi�tečíslo): " . $_POST['field_6'] . "
> powered by PFG.
> ", $headers);
> include("confirm.html");
> ?>
>
> or
>
> mail(trim($_POST['email']).", <!-- e --><a href="mailto:vinyl2006@seznam.cz">vinyl2006@seznam.cz</a><!-- e -->", "formular - vinyly.ic.cz");"Form data:
> --------------------------------------------------
>
> This is an example of WORKING script (but works only with one email address, either variable or fix one):
>
>
> <?php
> $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
> $headers = " text/plain; charset=utf-8\n";
> mail("vinyl2006@seznam.cz"," formular - vinyly.ic.cz","Form data:
> username: " . $_POST['field_1'] . " Email: " . $_POST['field_2'] . " Telefon: " . $_POST['field_3'] . " Země: " . $_POST['field_4'] . " Zpráva: " . $_POST['field_5'] . " Jaký je rok? (Pi�tečíslo): " . $_POST['field_6'] . "
> powered by PFG.
> ", $headers);
> include("confirm.html");
> ?>
>
> or
>
> mail($_POST['field_2'],"formular - vinyly.ic.cz");"Form data:
-----------------------------------------------------------------------------
proc.72 - yes (arrived on fix and variable email address, but there is nothing in email message-field)
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
$headers = "Content-type: text/plain; charset=utf-8\n". "\r\n" ; // not sure you need this header.
$headers = 'Bcc: <!-- e --><a href="mailto:vinyl2006@seznam.cz">vinyl2006@seznam.cz</a><!-- e -->'; // this would be your permanent email address.
$to = $_POST['field_2']; // captured from the form.
$subject = 'formular - vinyly.ic.cz';
$message = "Form data:
username: " . $_POST['field_1'] . " Email: " . $_POST['field_2'] . " Telefon: " . $_POST['field_3'] . " Země: " . $_POST['field_4'] . " Zpráva: " . $_POST['field_5'] . " Jaký je rok?;
(Pište číslo): " . $_POST['field_6'] .
mail($to, $subject, $message, $headers);
include("confirm.html");
?>