Does anyone know of a way to loop on a form…specifically I want to repeatedly submit the same query multiple times to stress test my database…
You could do it just with HTML and client-side script. Put default values in all the inputs and use Javascript to submit the form when the page loads. Then use this form page as the output or redirect when the form processor completes (the mechanism depending on what you’re using to process the form). That way, every time you submit, the form would reload in the browser and automatically submit again.
That’s kind of a kludge, and it doesn’t allow you to fine-tune the timing of the load. A better solution would be to write an app in the programming language of your choice to submit POST data to your form processor. That is, use code to replace the HTML form and take the browser out of the equation. That way you can put the submission in a timing loop to control the load. This is pretty straightforward coding, and I’ll be happy to elaborate if you code in a language I use (java, perl,…).
You don’t need to use Javascript. If you’re sending your parameters via the GET method (e.g. appending a query string to the URI) then simply have your script send a <META> tag that refreshes itself every X seconds.
If you know Perl, you can use the LWP::Simple module to write a basic HTTP client to send form data repeatedly.