How do I set up opt-in form using e-newsletter widget

I want to be able to add the email subscription widget to my opt-in form. How would I do this?
Want something similiar to what aweber does for opt in. Thanks