我已经制作了这样的邮件表格
<?php
//session_start();
$Total = $_POST['Total'];
$room = $_POST['room'];
$letter = $_POST['letter'];
$Name = $_POST['name'];
$Email = $_POST['email'];
$Address = $_POST['address'];
$Message = $_POST['message'];
$body = "Message sent from CARBONYZED Quotation System | www.CARBONYZED.co.uk ". "\r\n".
"// Number of $room = Sel". $letter. " \r\n".
"// Quote Total = ". $Total. " \r\n".
"// Name = ". $Name. " \r\n".
"// Email = ". $Email. " \r\n".
"// Address = ". $Address. " \r\n".
"// Message = ". $Message. " \r\n".
$subject = "**CONTACT FORM** - From CARBONYZED's Web Server";
$to = "AffordableCleaners@carbonyzed.co.uk";
$headers = 'AffordableCleaners@carbonyzed.co.uk' . "\r\n" .
'Reply-To: AffordableCleaners@carbonyzed.co.uk' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if (mail($to, $Email, $body, $headers)) {
echo("<p>Message successfully sent!</p> Click here to go <a href='http://www.affordablecleaners.co.uk'>back</a>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
这很好,除了我需要添加更多功能。在上一页,我有一些盒子,我将在这里发布
<tr>
<td align="left">Stairs</td>
<td align="center" style="text-align: left">
<select name="SelA">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="hidden" name="TotA" onFocus="this.blur();" />
<br></td>
<td width="120" align="center" style="text-align: left">
<select name="SelAA">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="hidden" name="TotAA" onFocus="this.blur();" />
<br></td>
<td width="116" align="center" style="text-align: left">
<select name="SelUA">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="hidden" name="TotUA" onFocus="this.blur();" />
<br></td>
</tr>
请你能帮我做两件事,首先拉出楼梯以发送邮件内容(例如楼梯),还有3个值,每个下拉列表中每个的内容......
此外,我们可能会添加一些具有相似数据但不完全相同的所有数据。基本上,楼梯格式的名称文本值总是随机的,但 SelA 和 SelUA 总是在变化。基本上,我们需要它循环并提取这 4 位信息(或 8、12、16 ......
希望某人的疯狂大脑可以提供帮助
问候
亨利