I'm building a feedback system with real-time feedback (kinda like a one-sided chat room) & I need to know how to change the refresh rate of a META refresh based on the number in a form.

- META refresh starts at 5 seconds
- If somebody changes the number in the form, the refresh rate changes (ie: from 5 seconds to 10 seconds)

I'm not sure if this can be done with javascript, or PHP, but I need it.