By Viralata on
Hi There
I am new to the Drupal and PHP world, and i am trying to make a webform in my website, the problem is that i need when the person click at Submit, the form send an E-mail to the person with some static text.
My poor knowledge of php don't help me, i am trying to find a way, but no success.
Sorry for the bad english, and thx for your time.
Comments
There's a module for that.
There is a module to create webforms as nodes. It makes it much easier.
The module is called Webform. http://drupal.org/project/webform
If for some reason you need to use the form api, you need to use the [form]_submit function, here's an example:
http://drupal.org/node/717740
Good Luck.
Thx for the reply, i am using
Thx for the reply, i am using the Webform =D
Now i am rying to make the form send a customized text Beyond the what had been inpu in the form...
If have any clue, thx =D
In that case, you can theme
In that case, you can theme it by following the instructions in the THEMING.txt file included in the module directory.
It elaborates on using webform-mail.tpl.php to theme email messages, including webform-mail-[nid].tpl.php to theme the mail message for certain webforms.
Hope this helps...
-orbface9
Very Thx, now i can stylish
Very Thx, now i can stylish it =DDD