[英]Checkbox not working in nms formmail
我將nms的FormMail腳本用於表單,如下所示:
<form method=POST action="/cgi-bin/FormMail.pl">
<input type=hidden name="recipient" value="mail@hotmail.com">
<input type=hidden name="subject" value="subject">
<input type=hidden name="redirect" value="-">
<p>First Name:<input type="text" name="FirstName" /></p>
<p>Last Name:<input type="text" name="LastName" /></p>
<p>E-Mail:<input type="text" name="email" /></p>
</label>
<input id="checkbox1" type="checkbox"><label for="checkbox1">Printing
</label>
<input id="checkbox2" type="checkbox"><label for="checkbox2">Web Development
</label>
</form>
我收到的郵件中包含名字和姓氏,但其中不包含有關電子郵件輸入或復選框的任何信息。
這有什么問題?
我相信這將是nms腳本問題。 如果不詳細研究nms,應該發生這種情況。
在提交時,表單內的所有數據都應轉到Pearl腳本。
但是,Pearl腳本中需要有一些從表單獲取數據的函數。
然后Pearl腳本會將數據分配給變量或輸出,然后由郵件功能對其進行處理。
因此,您正在尋找的是Pearl腳本中的一部分,該部分將獲取表單信息,以便通過電子郵件發送該表單信息,並確保已包括您的復選框。
*另外請注意,電子郵件輸入后似乎有一個錯誤的地方
nms formmail程序可以毫無問題地處理各種HTML表單輸入。 如果您需要有關此問題的更多幫助,請隨時使用我們的支持電子郵件地址nms-cgi-support@lists.sf.net與該項目聯系。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.