Posted by mewoo on September 6, 2009 at 2:04pm
Hello there,
I would like to add a send to friend function under a webform confirmation message. It's about a field call friend's name and friend's email and end to up to 3 friends.
At the backend, I can find out friend’s name, friend’s email, open count, click count.
any suggestion?
Thanks so much!!!
Comments
Hi there, Couple of questions
Hi there,
Couple of questions for clarification: Are you using the webform module, or are you talking about a form in general when you say 'webform'? Are you looking for an existing module, or an idea of where to start when building your own?
Cheers,
Chris
Build a Module.com - The definitive video guide to Drupal development
I've recorded over 500 focused Drupal video tutorials at Build a Module.com.
Hi Chris, Yes I'm using a
Hi Chris,
Yes I'm using a webform module, and it got a function show a message or page after I summit the form.
And I want to find an idea who can let visitor send the link to friends after they summit the form.
Thanks,
mewoo
Gotcha. Well, what you can do
Gotcha. Well, what you can do is create 3 e-mail inputs, and then on submission, add some php code to the "Additional processing" input (in the Weform advanced settings group). You can use the drupal_mail() function to send the mail.
If you did this, be aware of the security implications and plan accordingly. Opening up a form for an anonymous person to send e-mail to any e-mail address can be exploited if not checked.
Cheers,
Chris
Build a Module.com - The definitive video guide to Drupal development
I've recorded over 500 focused Drupal video tutorials at Build a Module.com.