Well, I can't write the code for something like this, but I do have an idea.
A PHP script should count the rows in the response table. If it's more than, let's say, 30 rows(responses), then another PHP script shal echo out nothing/or text instead of the form.
Like:
Code:
if ($rowcount == "30") {
echo "We do not need more responses, thank you";
}