eXtensible Form Language Demos
Form using the foreach element to repeat sections of a form.
Source Array
Array
(
[company] => Company Name
[0] => Array
(
[personal_name] => David
[email] => david@companyname.co.uk
[password] => secret
[sex] => Array
(
[0] => male
[1] => female
)
[type] => logo
[colour] => Array
(
[0] => red
[1] => yellow
[2] => pink
[3] => magenta
[4] => silver
)
[goldenboy] => he is golden
[spam] => Array
(
[0] => emailspam
[1] => mailspam
)
[description] => <p>HTML Injector's Nightmare</p>
)
[1] => Array
(
[personal_name] => Gertrude
[email] => gertrude@companyname.co.uk
[password] => secret
[sex] => female
[type] => website
[colour] => Array
(
[0] => red
[1] => yellow
)
[spam] => Array
(
[0] => emailspam
)
[description] => How far can we take this? <a href="http://spam.com/">spam</a>, <a href="http://bilge.com/">bilge pump systems</a>
)
[2] => Array
(
[personal_name] => Diana
[email] => diana@companyname.co.uk
[password] => secret
[sex] => female
[type] => website
[colour] => Array
(
[0] => pink
[1] => black
)
[spam] => Array
(
[0] => salespeople
[1] => telephonespam
)
[description] => Another description
)
[terms] => 0
)
XFL Document
Version: 0.3.1 (open beta2)
Requirements: PHP 5.2