in reply to Building a Dynamic GUI

You can do that on the client side as well with javascript, javascript function plot will surely help you.

Though of course that will fail if javascript is disabled or not available, so a server side solution would be better.