PHP interesse |
|
Form.php:
<form action="email.php" method="POST">
Naam:
<input type="text" name="from" />
Subject:
<input type="text" name="subject" />
Bericht:
<textarea cols="30" rows="7" name="msg" />
</form>
<form action="email.php" method="POST"> Naam: <input type="text" name="from" /> Subject: <input type="text" name="subject" /> Bericht: <textarea cols="30" rows="7" name="msg" /> </form>
email.php:
<?php
$from = $_POST['from'];
$sub = $_POST['subject'];
$msg = $_POST['message'];
$headers = 'From: '. $_POST['from'] . "/n";
$headers .= 'Reply-To: '. $_POST['from'];
mail('jouw@mailadres.be', $sub, $msg, $headers);
?>
<?php $from = $_POST['from']; $sub = $_POST['subject']; $msg = $_POST['message']; $headers = 'From: '. $_POST['from'] . "/n"; $headers .= 'Reply-To: '. $_POST['from']; mail('jouw@mailadres.be', $sub, $msg, $headers); ?>
Natuurlijk nog naar behoren aan te passen!
Code voor als je het op 1 pagina wilt! |