FollowThePeacemakers
Programmer
I apologize for my newbie-ness but I need help writing an easy script. Hope this isn't too much of a faux pas.
I have two "email" textarea fields in a form. In order, the first field is named "EmailAddress" (required) and the second is "ContactEmail" (we're using both addresses for different things. both addresses are actually Response.write'ed in the sent email message).
Here's what I need: If a user enters email addresses in BOTH fields then the address in "ContactEmail" is the From address in the email that is sent to us. If the user only fills in "EmailAddress" and NOT "ContactEmail" at all, then "EmailAddress" is the From address of the email that is sent to us.
I really appreciate the help!
I have two "email" textarea fields in a form. In order, the first field is named "EmailAddress" (required) and the second is "ContactEmail" (we're using both addresses for different things. both addresses are actually Response.write'ed in the sent email message).
Here's what I need: If a user enters email addresses in BOTH fields then the address in "ContactEmail" is the From address in the email that is sent to us. If the user only fills in "EmailAddress" and NOT "ContactEmail" at all, then "EmailAddress" is the From address of the email that is sent to us.
I really appreciate the help!