Drupal - Generating forms from the database.
- by YsoL8
Hello
I'm trying to teach myself Drupal and I've found something I can't find any tutorials for.
I am trying to generate a form, with a dynamic number of text fields, to populate and edit the contents of my custom table. In regular PHP I would achieve this with:
$count = '0';
while ($row = mysql_fetch_array ($result) {
echo "<input type='text' name='title_row".$count."' value='".$row['title']."'>"
$count = $count +1;
}
Can someone point me to something that'll show me how to do that in Drupal (and processing the submited data)?
Thanks