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">