By rickardl on
Hi, I want to add more fields to my contact form, whats the best way to do this?
create a new node with all necessary fields? (but then, i need some kind of module or something that can grab the field's values and email them..)
or maybe somehow edit the contact form, which i dont know how to.
Comments
two options
You have two options:
You will have to create your own module and implement two hooks:
form_alter and contac_page_submit.
With form_alter you can add your costum fields and with cantact_page_submit you can pick-up those fields and process them.
Take a look at the contact_attach module (provides attachments for contactpage) and you can see how it is done.
If you are not into builiding your own modules you better install the webform module. You can easily design forms wich can be used as contact forms for your website.