in reply to Dynamic Forms

I haven't done any PHP work but apparently it's very perl-like. So if you have it installed on your webserver already, it might be worth taking a look at as I believe it has native PDF support.