[Challenge ] - Create a Form Description Language
Posted: Sat Sep 12, 2009 1:09 pm
Hey Guys,
The challenges are awesome, so I thought I'd create one that might be fun.
The Challenge, Create a form description language, such that, the following input, will create the following output (and pull values for inputs from the supplied array):
(DEFAULT VALUES)
(FORM DESCRIPTION)
(OUTPUT)
I've got a few ideas for other challenges that build off of this one, so bonus points go for code quality.
The challenges are awesome, so I thought I'd create one that might be fun.
The Challenge, Create a form description language, such that, the following input, will create the following output (and pull values for inputs from the supplied array):
(DEFAULT VALUES)
Code: Select all
$a = array();
$a['firstname'] = 'Jim';
$a['lastname'] = 'Bob';
Code: Select all
input text firstname
input text lastname
Code: Select all
<input type="text" name="firstname" value="Jim">
<input type="text" name="lastname" value="Bob">