Although this is possible I would call the method a bit of a "hack" and wouldn't really reccomend it.

AJAX would be a much better solution