[PHP]
<form action='' method='post' name='create_table_form' id='create_table_form' >
<table border='0' cellpadding='0' cellspacing='0' width='95%'><tr><td><br />
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr><td> Database Name:</td>
<td><input type='text' name='db_name' size='20' value=<?php echo $db_name; ?>></td></tr>
<tr><td><br> Table Name:</td>
<td><br><input type='text' name='table_name' size='20' value=<?php echo $table_name; ?>>
</td></tr>
<?php
for($i=0; $i < $num_fields; $i++)
{
?>
<tr><font face='verdana' size='1'>
<td><br> Field: <input type='text' name='fld_name[$i]' size='10'>
<?php
$types = array("varchar","tinyint","text","smallint","mediu mint","int","bigint","float","double","decimal",
"char","tinyblob","tinytext","blob","mediumblob"," mediumtext","longblob","longtext","binary","varbin ary");
?>
<td><br> Type: <select name='fld_type[$i]'>
<?php
for($j=0; $j < count($types); $j++)
{
?>
<option value=<?php echo $types[$j]; ?>><?php echo $types[$j]; ?></option>
<?php } ?>
</select></td>
<td><br> Size: <input type='text' name='fld_size[$i]' size='5'></td>
<td><br> Null: <select name='fld_null[$i]'>
<option value='not null'>Not Null</option>
<option value='null'>Null</option>
</select></td>
<td><br><input type='checkbox' name='fld_extra' value='auto_increment' size='10'> Auto-increment</td>
<td><br><input type='radio' name='fld_keys' value='primary key' size='10'> Primary</td>
<td><br><input type='radio' name='fld_keys' value='unique key' size='10'> Unique</td>
</font></tr>
<?php } ?>
<tr><td><br> <input type='submit' name='create_table_submit' value='Create Table'></td>
<td><input type="hidden" name="num_flds" value="<?php echo $num_fields;?>" /></td>
</tr>
</table>
</td></tr></table>
</form>
[/PHP]
How do i retrieve $fld_name[$i] etc fields from the above form?
Any help would be appreciated. Thanks!