简体   繁体   中英

Checkbox not working in nms formmail

I use nms's FormMail script for my form as follows:

<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>

I receive the mail with first and last name but that doesn't contain any info about e-mail input or checkboxes.

What is wrong with this?

I believe this would be the nms script issue. Without looking at nms in detail here is what should happen.

On Submit, all your data inside the form should go to the pearl script.

However there needs to be functions in the pearl script that gets the data from the form.

Then the pearl script will assign that data to a variable or output that would then be processed by a mailing function.

So what you are looking for is the part in the pearl script where it gets the form information in order to send it via email, and make sure that your checkbox's are included.

*also as a side note, there seems to be a in the wrong place just after the email input

The nms formmail program handles all kinds of HTML form inputs without problems. If you want more help with this issue, please feel free to contact the project using our support email address - nms-cgi-support@lists.sf.net.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM