I get what you're saying, but isn't it a little tedious to go through each value one by one? Couldn't you use a for loop on the array of values?
I tried this:
if( !empty($submit) ) {
<process info>
}
else {
<print my form html>
}
But that didn't work too well. I would sumbit the form, but the it wouldn't processs the info, it would just print the html again.
Also, is there a function to flush out the info from the previous form? I want the info from the previous time I submitted something to be removed.