![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Boy, do I need help! The form in question is here: http://www.annveronica.com/contact.html I set a up a mail box for my client through her hosting company. I know that the mail box and it's email address work fine. The form uses the hosting company's form mail script and is supposed to send the information to her mail box. According to her hosting company, I have the set up the necessary info for the form mail script correctly, but still the test forms that I have submitted are not going to her mail box I am really stumped and any help you could give would be very appreciated! Thanks! Suzy |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Boy, do I need help! The form in question is here: http://www.annveronica.com/contact.html I set a up a mail box for my client through her hosting company. I know that the mail box and it's email address work fine. The form uses the hosting company's form mail script and is supposed to send the information to her mail box. According to her hosting company, I have the set up the necessary info for the form mail script correctly, but still the test forms that I have submitted are not going to her mail box I am really stumped and any help you could give would be very appreciated! Thanks! Suzy |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
form name="form1" method="post" action="http://www.yourdomain.com/cgi-bin/formmail.pl" target="_blank" input type=hidden name="recipient" value="hername (AT) e-mail (DOT) com" <input type=hidden name="redirect" value="/.samples/formmail/thankyou.htm" |
#7
| |||
| |||
|
|
I don't see any hidden field for RECIPIENT. In formmail programs I'm used to, this is CRITICAL and won't work without it. See your site host's FAW or check this out: http://www.scriptarchive.com/readme/formmail.html MD oiseau wrote: Boy, do I need help! The form in question is here: http://www.annveronica.com/contact.html I set a up a mail box for my client through her hosting company. I know that the mail box and it's email address work fine. The form uses the hosting company's form mail script and is supposed to send the information to her mail box. According to her hosting company, I have the set up the necessary info for the form mail script correctly, but still the test forms that I have submitted are not going to her mail box I am really stumped and any help you could give would be very appreciated! Thanks! Suzy |
#8
| |||
| |||
|
|
Thanks, Nancy and ahhhhhhhh for writing back. Nancy, the validation was another challenge that I just tried to add-- that is not right yet, but if I can't get the form to the proper mail box, everything else is moot. ![]() ahhhhhhh, I added the code you suggested and it still is not going to the mailbox. Here's the CGI script that the hosting company provides: #!/usr/bin/perl -T sub parse_form_data { local (*FORM_DATA) = @_; local ( $request_method, $query_string, @key_value_pairs, $key_value, $key, $value); $request_method = $ENV{'REQUEST_METHOD'}; if ($request_method eq "GET") { $query_string = $ENV{'QUERY_STRING'}; } elsif ($request_method eq "POST") { read (STDIN, $query_string, $ENV{'CONTENT_LENGTH'}); }; @key_value_pairs = split(/&/, $query_string); foreach $key_value (@key_value_pairs) { ($key, $value) = split (/=/, $key_value); if (defined($value)) {$value =~ tr/+/ /; $value =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack ("C", hex ($1))/eg;}; if (defined($FORM_DATA{$key})) { $FORM_DATA{$key} = join (" ", $FORM_DATA{$key}, $value); } else { $FORM_DATA{$key} = $value; } } }; # end of sub &parse_form_data(*simple_form); $t = time; open (OUTFILE, ">data/gdform_$t") or die ("Cannot open file"); while (($key , $value) = each(%simple_form)) { print OUTFILE "<GDFORM_VARIABLE NAME=$key START>\n"; print OUTFILE "$value\n"; print OUTFILE "<GDFORM_VARIABLE NAME=$key END>\n"; if ($key eq "redirect") { $landing_page = $value;} } close (OUTFILE); if ($landing_page ne "") { print "Location: http://$ENV{'HTTP_HOST'}/$landing_page\n\n"; } else { print "Location: http://$ENV{'HTTP_HOST'}/\n\n"; } |
#9
| |||
| |||
|
|
It's there .. right after the form tag: input type="hidden" name="recipient" value="info (AT) annveronica (DOT) com" or was this added after we initially looked? Is this solved now? "Mad Dog" <md (AT) mdp (DOT) com> wrote in message news:ctr81j$7fu$1 (AT) forums (DOT) macromedia.com... I don't see any hidden field for RECIPIENT. In formmail programs I'm used to, this is CRITICAL and won't work without it. See your site host's FAW or check this out: http://www.scriptarchive.com/readme/formmail.html MD oiseau wrote: Boy, do I need help! The form in question is here: http://www.annveronica.com/contact.html I set a up a mail box for my client through her hosting company. I know that the mail box and it's email address work fine. The form uses the hosting company's form mail script and is supposed to send the information to her mail box. According to her hosting company, I have the set up the necessary info for the form mail script correctly, but still the test forms that I have submitted are not going to her mail box I am really stumped and any help you could give would be very appreciated! Thanks! Suzy |
#10
| |||
| |||
|
|
Thanks, Nancy and ahhhhhhhh for writing back. Nancy, the validation was another challenge that I just tried to add-- that is not right yet, but if I can't get the form to the proper mail box, everything else is moot. ahhhhhhh, I added the code you suggested and itstill is not going to the mailbox. Here's the CGI script that the hosting company provides: #!/usr/bin/perl -T sub parse_form_data { local (*FORM_DATA) = @_; local ( $request_method, $query_string, @key_value_pairs, $key_value, $key, $value); $request_method = $ENV{'REQUEST_METHOD'}; if ($request_method eq "GET") { $query_string = $ENV{'QUERY_STRING'}; } elsif ($request_method eq "POST") { read (STDIN, $query_string, $ENV{'CONTENT_LENGTH'}); }; @key_value_pairs = split(/&/, $query_string); foreach $key_value (@key_value_pairs) { ($key, $value) = split (/=/, $key_value); if (defined($value)) {$value =~ tr/+/ /; $value =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack ("C", hex ($1))/eg;}; if (defined($FORM_DATA{$key})) { $FORM_DATA{$key} = join (" ", $FORM_DATA{$key}, $value); } else { $FORM_DATA{$key} = $value; } } }; # end of sub &parse_form_data(*simple_form); $t = time; open (OUTFILE, ">data/gdform_$t") or die ("Cannot open file"); while (($key , $value) = each(%simple_form)) { print OUTFILE "<GDFORM_VARIABLE NAME=$key START>\n"; print OUTFILE "$value\n"; print OUTFILE "<GDFORM_VARIABLE NAME=$key END>\n"; if ($key eq "redirect") { $landing_page = $value;} } close (OUTFILE); if ($landing_page ne "") { print "Location: http://$ENV{'HTTP_HOST'}/$landing_page\n\n"; } else { print "Location: http://$ENV{'HTTP_HOST'}/\n\n"; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |