This is the output from a form, is it possible send this in a mail to the user ['mail'], from a link"?
I have a mail script, but it works via <FORM METHOD=POST ACTION="send.php">.
It would be much nicer to send this, already formated, output to the user and a custom formated mail to the admin (me).
This is an "confirm data" output. I could simply send the mail from the formular, but would like to have the user to validate the input before sending it.
----code_snip----
<HTML>
<HEAD>
<TITLE>Tilmelding til Foundation eksamen</TITLE>
</HEAD>
<BODY>
<?php
if( isset( $_POST['f'])) {
echo "Bekræft venligst dine data!";
echo "<BR>";
echo "<BR>Deltagernavn: <b>" . $_POST['deltager'] . "</b> \n";
echo "<BR>E-mail: <b>" . $_POST['mail'] . "</b> \n";
echo "<BR>Telefon: <b>" . $_POST['tlf'] . "</b> \n";
echo "<BR>Dato for eksamen: <b>" . $_POST['dato'] . "</b> \n";
echo "<BR>";
echo "<BR><b>Faktureringsadresse: </b>" . "</b>";
echo "<BR>";
echo "<BR>Navn: <b>" . $_POST['faktura'] . "</b> \n";
echo "<BR>Adresse: <b>" . $_POST['adresse'] . "</b> \n";
echo "<BR>Postnummer.: <b>" . $_POST['postnr'] . "</b> \n";
echo "<BR>By: <b>" . $_POST['by'] . "</b> \n";
echo "<BR>";
}
foreach($_POST['tilsendt'] as $value) {
echo "<BR>Ønskes manual tilsendt: <b>" . $value . "</b> \n";
echo "<BR>";
}
foreach($_POST['man_spr'] as $value) {
echo "<BR>Manualen ønskes på: <b>" . $value . "</b> \n";
}
echo "<BR>Eksamen ønskes på: <b>" . $_POST['Sprog'] . "</b> \n";
echo "<BR>";
echo "<BR>";
?>
<A HREF="javascript:history.go(-1)">[tilbage til formularen]</A> | <a href="sendf.php" title="bekræft og send e-mail" target="_blank">[bekræft og send e-mail]</a>
</BODY>
</HTML>
-----end code_snip-----
Its probably so simple, but I cannot see it.. :=)
PS. the /n dosen't work..
THX.
/FAF