I'm using webform as an advanced contact form but realized my email addresses are exposed.

I was reading here: http://drupal.org/node/282436#comment-955265

To make this possible, I'd suggest automatically turning the keys into integers and not displaying the real e-mail keys at all (this also helps protect against spam bots and is the way contact.module works). Then when the form is submitted, the numeric keys are converted back into their e-mail address equivalents (prior to additional submit code and saving in the database).

I have no idea how to do this. Can this be done with webform?

Thanks,
Peter

Comments

that0n3guy’s picture

Update:
Tried using BBcode filter on it... but those text area's aren't effected by filters.... which makes sense.

I'm guessing someone much wiser than I could write up some php for this... or maybe its something easy and I'll be sitting here like the guy w/ cake on his face... :| ha

that0n3guy’s picture

No one have any idea's on this?

that0n3guy’s picture

Does no one do this? if not.... what do you do? Add a node to the top of the standard contact via a tpl file or something?

Critical Tinkerer’s picture

I presume you want to be able to select from a list of recipients. The quick and dirt way is create a contact page with separate links to each recipient or department. These link to separate webforms (use the None Clone module to create copies of the form and then customised the recipient name and email address for each case.)

If you want to get fancier than that, you'd need to create a php code snippet in the "Additional Processing" to override the recipient email address.

that0n3guy’s picture

hardfocus,

Hey thanks, I didnt even think about creating different contact forms, ha. So simple, that will work for now.

I'm not a coder so the 'additional processing' thing is out for me :) I spose I might be able to figure out a simple if then... I'll look at it.

Critical Tinkerer’s picture

Status: Active » Closed (fixed)