Forum Moderators: open

Message Too Old, No Replies

Email Form

Using DW4

         

eggy ricardo

4:54 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



Hi guys

I have recently started using DW4 (from fp which i v much disliked). I was wondering if there was a way to create a email for that just sent the reply to an address instead of putting a link which could get spammed.

Is there just a simple submit button variation or do i need something to process the information

Thanx
eggy_ricardo

dragonlady7

7:02 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



I use DW (MX but I don't think it matters) and I haven't found anything like that.

You'll probably have to set up a formmail cgi script of some kind-- I'm currently cluelessly struggling with that, myself. So, I dunno. It's certainly not that easy.

coopster

7:48 pm on Sep 29, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I've seen quite a few different ways to handle this, even without forms and server-side processing. One clever way was using javascript to change the email address via the class on the Anchor element:

<a class="contact1" onmouseover="setTheContact();" onfocus="setTheContact();" href="contact.htm">Contact Me</a>

Then within your javascript you would get the element based on it's tag name (getElementsByTagName) and change the object's href (obj.href = 'mailto:' + name + '@' + myDomainName) by piecing together variables. You can get really fancy by using regular expressions if you want.