phpDocumentor

Form
in package

Read onlyYes

Formulaire Html

Table of Contents

Properties

$action  : string
$fields  : array<string|int, mixed>
$hiddens  : array<string|int, mixed>
$method  : string
$submit  : string

Methods

__construct()  : mixed
Création d'un formulaire
__toString()  : string

Properties

Methods

__construct()

Création d'un formulaire

public __construct([array<string, Field$fields = [] ][, string $submit = 'submit' ][, array<string, string> $hiddens = [] ][, string $action = '' ][, "get"|"post" $method = 'get' ]) : mixed
Parameters
$fields : array<string, Field> = []

les champs du formulaire avec comme clé le nom du champ

$submit : string = 'submit'

le libellé sur le bouton de validation du formulaire

$hiddens : array<string, string> = []

les paramètres cachés et leur valeur

$action : string = ''

le script à exécuter

$method : "get"|"post" = 'get'

le script à exécuter

__toString()

public __toString() : string
Return values
string

        
On this page

Search results