How do I add a form to the block? I want to add a configuration form for a block. The form's style is the following:


    one year (label)    input text box value    eg:$10     
    two years           input text box value     
    three years         input text box   
    500 accounts        input text box   
    1500 accounts       input text box   
    2500 accounts       input text box   
    image:              can upload an image


How do I do it? I should write a module to get that.

How do I design the table, which is used to store the input box value and image value.
How do I design the fields?
Which hook should I use?
You can use a combination of the Webform module and Views.  Create a node with the form you want using the webform module and you can then create a block with Views for that particular node.