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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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



Dec 28, 2000, 9:40 AM

Post #1 of 2 (455 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!



Jan 3, 2001, 1:32 AM

Post #2 of 2 (433 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.



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

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