我在這裏有一個表單,當提交時,它會發送到我的電子郵件。有沒有辦法,當它發送時,它可以從一個字段中的特定值(這將是一個字段,要求他們的電子郵件地址)。這只是爲了更容易回覆他們的消息。現在它發送到我的電子郵件地址作爲我的$ where_form_is。PHP表單發送到電子郵件標題的電子郵件表格數據
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
$from = $_REQUEST['field_1'];
mail("[email protected]"," 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");
?>
非常感謝,這正是我需要的! – Bee