I've got an array of sites like so...
$data = array(
'http://site1.net/',
'http://site2.net/',
'http://site3.org/'
);
And I'd like to create a script that iterates over the array and creates a list of input text fields containing each array element...
Example:
1. [] http://site1.net/
2. [] http://site2.net/
3. [] http://site2.net/
Where [] represents the checkbox element and the URL is inside an input text field.
<ol>
<li><input type="checkbox" id="check1" /><input type="text" id="text1" value="http://site1.net/" /></li>
<li><input type="checkbox" id="check2" /><input type="text" id="text2" value="http://site2.net/" /></li>
<li><input type="checkbox" id="check3" /><input type="text" id="text3" value="http://site3.net/" /></li>
etc...