You could certainly use a form builder like that one, or forms-to-go at http://www.bebosoft.com/products/formstogo/overview/
But you could also just modify the sample script on the site I referenced. If you post your form code, someone will be able to help with the script.