CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
form-to-email delimiter change in cgi script

 



tperino
Deleted

Dec 28, 2000, 9:40 AM

Post #1 of 2 (448 views)
form-to-email delimiter change in cgi script Can't Post

Hi all:

I am trying to change the delimiters on info that is sent to me in the email body via an HTML form/cgi script configuration.

Currently, the email is delivered using colons (:) as delimiters, which is the same used for the email header info (to, from subject). I would like the info from the body of the email form to have an equal sign (=) as the delimiter so it can stripped from the email and stored in a .txt file (without the header stuff).

Here's the subroutine where I think the change needs to be made:

sub print_mail {

my ($name, $value, $pair, $submitter_email, submitter_name);

my ($subject, $replyto, $cc, $bcc);

$to = ""; $cc=$to; $bcc=$cc;

foreach $pair (@vars) {

($name, $value) = split (/\t/, $pair);


Thanx for any hints offered!

Tom




BigRich
Novice

Jan 3, 2001, 1:32 AM

Post #2 of 2 (426 views)
Re: form-to-email delimiter change in cgi script [In reply to] Can't Post

If possible, attach the complete script to a post or give a url to a text file copy and someone may be able to help. There's not enough to go on in your current post.

Rich


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives