Thanks for the suggestion, but that isn't exactly the intent. The important thing is assigning them to variables. So say page 1 has 10 text fields, among others with descriptive names (name, id, blah, blah) that are almost identical in what is put in them. And they are going to be sent to page 2 with POST action on the FORM tag.
Well, on page 2 I want to put them into a db, so I need to assign them variables to add them to the query. But first I want to manipulate them, so I really would like them to be assigned:
$field1
$field2
$field3
$field4
$field5
etc.
But if I'm going to run the same manipulation on them, how come I can't just make those variables in a loop? Why do I have to make each one?
Can't I just have '$field' and attach the loop number $n on the back to make the new variable $field1, $field 2, etc?
$sql_result = query("INSERT INTO $table VALUES ('$id','$title','$body','$prev','$next','$field1','$field2','$field3','$field4','$field5','$field6','$field7','$field8','$field9','$field10')");
etc. etc.
Sorry for the confusion. I hope this conveys what the intent correctly so I can handle this data correctly.
/mark