You need to use a Custom Form. Make a copy of the template in the below thread, and study how it works.