Try this.
It is a working PBP example.
http://www.compsys1.com/support/PBP_Files/t6963c/

Modify it to suit your setup.