Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2004-07-15 19:48:22

galactico
New Member
Registered: 2004-06-25
Posts: 4

Re: dca_mailto_form (simple email form)

Perfect!

Thanks a lot nimnix.

Offline

#26 2004-07-21 12:39:35

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

Is there an easy way to modify this with another field so you can have a dropdown menu with various email addresses so the user can select who they want to sent their message to?

Offline

#27 2004-07-22 03:34:41

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

Also, is there any way to modify this so the “Thank You” page kicks you to a different template? Right now I have some explanatory text on the main contact form page, but even after the form is sent, it remains because it’s reading from the same template.

Offline

#28 2004-07-22 04:10:22

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

I know I’m evil for suggesting such a thing, but have you given any thought to : http://nms-cgi.sourceforge.net/scripts.shtml

Really, it is easy to configure and will do what you want for both multiple recipients and redirecting.

Offline

#29 2004-07-22 15:20:12

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: dca_mailto_form (simple email form)

Thanks for the pointer Damelon

Offline

#30 2004-07-22 15:23:06

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

And Jeff, I had written up a how-to on TXD for a single recipient. It has a couple of details useful for multiple recipients as well : http://textdrive.com/forum/viewtopic.php?id=105

Offline

#31 2004-07-22 16:00:48

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

Ahhh, I hadn’t seen that before. Do you know if it’s possible to drop this into a TXP page template and still have it work so I can maintain the search function on every page of the site?

Thanks for the tip.

Offline

#32 2004-07-22 16:13:55

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

Well, I’ve never tried to do it that way, but the script itself can be called as many times as you need it, so I don’t see why not. Just put the form you create wherever you need it.

Last edited by Damelon (2004-07-22 16:14:26)

Offline

#33 2004-07-22 18:06:13

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

I’m not sure if I’m reading the description in the Readme file of @recipients correctly, but I think I might be. In that case, this isn’t quite what I need it to do or I just don’t know enough about programming to make it work.

Here’s what I really need it to do. If someone comes onto the site and decides they want to email Customer Service, then they would click on a dropdown menu, select Customer Service and their message would be sent to that email address. If they wanted to email the Sales office, then they would click the drop down menu and … You get the picture.

Am I reading this wrong, or will this script not really do that?

I listed the URL to the previous script that I was trying to make work, but even when not incorporating it into TXP, I couldn’t make my php includes work to pull in certain template elements. Then I got to thinking about how I would lose functionality of the search if I didn’t include it into TXP, so that’s why I thought I’d ask.

Offline

#34 2004-07-22 18:17:47

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: dca_mailto_form (simple email form)

Well, I’m not going to mock it up tonight, but I believe it will. I think it’s the %recipient_alias field part that allows for it.

Offline

#35 2004-07-22 18:24:20

msteinruck
Member
Registered: 2004-07-14
Posts: 44

Re: dca_mailto_form (simple email form)

Okay, well I’ll give it a shot with my limited knowledge of this stuff. If you end up mocking it up at any point and achieving the effect I’m talking about, would you mind posting it here? I could really use help with this solution.

Thanks a lot Damelon!

Offline

#36 2004-07-23 04:32:52

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: dca_mailto_form (simple email form)

Recipient_alias and a bit of javascript to check what option is selected in the dropdown box should do it.

Offline

Board footer

Powered by FluxBB