Not really sure, but maybe a cascading if/else could do that? and make sanitization a function? Not very experienced at PHP/programming, so I'm a bit on shaky ground here...
if (eregi(unwanted symbols here, $yourdata)) {
Die('Data contains unwanted characters.');
}
else {
mysql_real_escape_string($yourdata);
$query1 = "INSERT INTO tablename (field1) VALUES ('$yourdata')";
//if previous query successful, present next form.
if ($query1 = "true") {
echo "Success";
//present next form here, and repeat process.
}
else {
die ('Error inserting info: ' . mysql_error());
}
In this way, one could just cascade down a selfsubmitting form, initiating forms in turn with submit buttons, form after form until the user is done.
It's not an accurate example, just a quick suggestion of sorts.