ここにフォームがあり、送信するとメールに送信されます。送信時に、いずれかのフィールドの特定の値から送信できる方法はありますか (メール アドレスを要求するフィールドになります)。これは、メッセージに簡単に返信できるようにするためです。現在、$where_form_is として私のメール アドレスに送信されています。
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
$from = $_REQUEST['field_1'];
mail("email@gmail.com"," Application ","Application Data:
Email (so we can reply):
" . $_POST['field_1'] . "
In Game Name:
" . $_POST['field_2'] . "
Please name ALL characters that you still actively play:
" . $_POST['field_3'] . "
Name/Nickname you prefer to be called:
" . $_POST['field_4'] . "
Age:
" . $_POST['field_5'] . "
Country/Time zone:
" . $_POST['field_6'] . "
How often do you play?:
" . $_POST['field_7'] . "
Which Boss Runs are you familiar with?:
" . $_POST['field_8'] . "
Previous guilds and reason for leaving/kick:
" . $_POST['field_9'] . "
Why do you want to join?:
" . $_POST['field_10'] . "
How did you find out about us?:
" . $_POST['field_11'] . "
Do you know anyone from here? If so, who?:
" . $_POST['field_12'] . "
Referrals (2-3 Contact IGNs of Previous Guild Masters/Junior Masters):
" . $_POST['field_13'] . "
Best way to contact you?:
" . $_POST['field_14'] . "
Any additional comments?:
" . $_POST['field_15'] . "
", "$from"
);
include("confirm.html");
?>