...
Form element | Example | HTML code | Result |
Input text field | <input name="campo5" type="text" maxlength="100" /> | The text entered by the user will be saved in the recipient field that has ID campo5 | |
Checkbox | <input type="checkbox" name="campo2" value="Action" /> Action <input type="checkbox" name="campo2" value="Adventure" /> Adventure | The value associated with the checkbox selected by the user will be saved in the recipient field that has ID campo2. In this case, if the user selects both of them, the value saved will be "Action, Adventure" | |
Radio button | <input name="campo7" type="radio" value="M" /> Male <input name="campo7" type="radio" value="F" /> Female | The value associated with the radio button selected by the user will be saved in the recipient field that has ID campo7. In this case, if the user selects "Male", the value saved will be "M" | |
Dropdown | <select name="campo9" id="campo9"> <option value="rrrr">rosa</option> <option value="gggg">giallo</option> </select> | The value associated with the drop-down menu item selected by the user will be saved in the recipient field that has ID campo9. In this case, if the user selects "rosa", the value saved will be "rrrr" | |
List | <select name="campo8" size="4"> <option value="bbbb">bianco</option> <option value="vvvv">viola</option> <option value="libero">grigio</option> </select> | The value associated with the list item selected by the user will be saved in the recipient field that has ID campo8. In this case, if the user selects "bianco", the value saved will be "bbbb" | |
Multiple selection list | <select name="campo5" size="4" multiple="multiple"> <option value="bbbb">bianco</option> <option value="vvvv" selected="selected">viola</option> <option value="liber">grigio</option> </select> | The value associated with the list items selected by the user will be saved in the recipient field that has ID campo5. In this case, if the user selects "bianco" and "viola", the values saved will be "bbbb,vvvv" | |
Groups | name=group | You can use check boxes, radio buttons, lists, etc. For example, with checkboxes, you would have: | The user will be assigned to the groups selected on the form. |
Warningnote | ||
---|---|---|
| ||
|
...