Drupal - Generating forms from the database.
        Posted  
        
            by YsoL8
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by YsoL8
        
        
        
        Published on 2010-06-16T10:43:20Z
        Indexed on 
            2010/06/16
            23:22 UTC
        
        
        Read the original article
        Hit count: 250
        
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
© Stack Overflow or respective owner