3. Consigli per moduli e elaborazione dei moduli (Advice for Forms and Form Processing)
3. Consigli per moduli e elaborazione dei moduli (Advice for Forms and Form Processing)
🇬🇧 Testo originale inglese
The representation and interpretation of forms and the nature of form processing is not specified by this document. However, for forms and form processing that result in the generation of multipart/form-data, some suggestions are included.
In a form, there is generally a sequence of fields, where each field is expected to be supplied with a value, e.g., by a user who fills out the form. Each field has a name. After a form has been filled out and the form's data is "submitted", the form processing results in a set of values for each field -- the "form data".
In forms that work with multipart/form-data, field names could be arbitrary Unicode strings; however, restricting field names to ASCII will help avoid some interoperability issues (see Section 5.1).
Within a given form, ensuring field names are unique is also helpful. Some fields may have default values or presupplied values in the form itself. Fields with presupplied values might be hidden or invisible; this allows using generic processing for form data from a variety of actual forms.
🇮🇹 Traduzione italiana
La rappresentazione e l'interpretazione dei moduli e la natura dell'elaborazione dei moduli non sono specificate da questo documento. Tuttavia, per i moduli e l'elaborazione dei moduli che comportano la generazione di multipart/form-data, sono inclusi alcuni suggerimenti.
In un modulo, c'è generalmente una sequenza di campi, dove ogni campo dovrebbe ricevere un valore, ad esempio, da un utente che compila il modulo. Ogni campo ha un nome. Dopo che un modulo è stato compilato e i dati del modulo sono stati "inviati", l'elaborazione del modulo produce un insieme di valori per ogni campo -- i "dati del modulo".
Nei moduli che funzionano con multipart/form-data, i nomi dei campi potrebbero essere stringhe Unicode arbitrarie; tuttavia, limitare i nomi dei campi ad ASCII aiuterà a evitare alcuni problemi di interoperabilità (vedere Sezione 5.1).
All'interno di un determinato modulo, è anche utile garantire che i nomi dei campi siano univoci. Alcuni campi possono avere valori predefiniti o valori preimpostati nel modulo stesso. I campi con valori preimpostati potrebbero essere nascosti o invisibili; ciò consente di utilizzare un'elaborazione generica per i dati del modulo provenienti da una varietà di moduli effettivi.