I'd like to create a contact form in PHP to be used on a page (e.g. node/11). It only has to be simple with Name, Email, Message.

I've looked into form_api and managed to create a module for it and install it but I have no idea how to call it on a page and get it to send an email to a specified address.

If it's in PHP is there anyway it can be done all on one page without having to link it to a seperate php file?

I'm totatlly confused by form api and my PHP knowledge is pretty basic, the examples I've tried from various different websites have all failed.

Regards
Mike

Comments

vm’s picture

have you considered the webform.module ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

mikebell_’s picture

Thank you very much, that is exactly what I needed. A little bit of tweaking and it'll be even better.

Thanks again.

BrianKlinger’s picture

Is there a reason you don't want to use the built in contact module?