Double Action Form

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

How would I get a form to write to a file, then send the results to an email?
I already have the writing part set up, but I tried adding the email part and it crashed. I was wondering if I could have a form go to 2 different CGI/Perl scripts.
The write-to file writes to multiple files, so it doesn't send the complete form data via email.
Please help
Thanks

Laughing out loud

They have: 62 posts

Joined: May 2000

Don't separate it into two different scripts, that'd be stupid. Why don't you post the code you have so far and let it be critiqued?

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Its a really long script
Is there a way to end one action and start a new one?
Should the formmail go after the write-to and before the subroutines?

Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.