Hi,
For the "file" field, forget it - it's a security feature of browsers that prevent you from ever setting this value inside a form. Any "value=" attribute is just ignored. I think the reason is to prevent malicious websites from secretly uploading files from people's computers.
For your "sort" field, you have the name wrong. A checkbox field would be named "sort[]" but a radio field is just "sort".
For the "realname" and "email" fields, this is a security feature of FormMail. It won't provide any special fields back to the bad handler.
The reason for this is that an attacker could use your bad handler to set values for special fields that you don't want changed (e.g. subject, recipients, etc.).
In actual fact, we're thinking about this more and it's probably a lame idea. We might remove this restriction in a later version.
To workaround this security feature, you need to use derived fields.
Here's how:
- Rename "realname" to "username".
- Rename "email" to "useremail".
- Add the following hidden field to your form:
Code:<input type="hidden" name="derive_fields" value="realname=username,email=useremail" />


Reply With Quote
Bookmarks