Please help with FormMail

F

fastjack

Hi,
I'm using FomrMail and I'm trying to customize the html email with the
form values that a user inputs. The form emails, but the values are
not returned. Here's the code:

In the sub send_mail I have the following:

# USE HTML-DEFINED FORM #
&ReadParse(*input);
print MAIL "Name: $input{firstName} ";
print MAIL "Last Name: $input{lastName}";

# END HTML DEFINED FORM

I've also tried:

# USE HTML-DEFINED FORM #
&ReadParse(*input);
print MAIL "<br>Name: $input{'firstName'} ";
print MAIL "<br>Last Name: $input{'lastName'}";

# END HTML DEFINED FORM


Results are emailed as follows:
 
W

Walter Roberson

:# USE HTML-DEFINED FORM #
:&ReadParse(*input);
:print MAIL "Name: $input{firstName} ";
:print MAIL "Last Name: $input{lastName}";

You aren't putting any newline in there, so everything is going to
run together on one line.

To debug your problem, I would suggest that you temporarily add in:

print MAIL "input field $_ had value |$input{_value}|\n" foreach (keys %input);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top