ivy
01-19-2003, 06:47 PM
Hi there
I have a rather large from on a web page. There are around 50 fields!!
After submitting the form to a perl/cgi script, as there is so much information, I would prefer if the actual page, as is, was sent to me by email as a html page with fields completed. I understand that I would need to remove the "fields" and I think replace with $fieldnames.
Thus, once received, it can be printed as was on the screen.
Does this make sense?
It is so that I can use tables to spread the data out in the email.
The code I use at the moment to send the email is:
sub makemail2 {
print MAIL<<_E_O_M_;
To: $support
From: $senderemail
Subject: $subject
Hey $support,
First Name: $companyname
Last Name: $sendername
Email Address: $senderemail
Telephone: $sendertele
AND TEHRE ARE LOADS MORE WHERE THE ABOVE CAME FROM !!!
Comments: $comments
_E_O_M_
}
I have tried to change it to the following but it doesn't seem to work:
sub makemail2 {
print MAIL<<_E_O_M_;
To: $support
From: $senderemail
Subject: $subject
<html>
<head></head>
<body>
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tbody>
<td valign=top rowspan=2 class="app_body">
<font face=Arial,Helvetica size=5>
<strong>1 </strong></font></td>
<td class="app_body">Name</td>
<td> $fname</td>
</tr>
<tr>
<td class="app_body">Address (1st line)</td>
<td> $address</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Address (2nd line)</td>
<td> $address2</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Address (3rd line)</td>
<td> $address3</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Postal town</td>
<td> $town</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Postcode</td>
<td> $postcode</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Telephone</td>
<td> $telephone</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Email Address </td>
<td> $email</td>
</tr>
</tbody>
</table>
</body>
</html>
Could anyone help me please? (I know I have to rid it of the class= too!)
I have a rather large from on a web page. There are around 50 fields!!
After submitting the form to a perl/cgi script, as there is so much information, I would prefer if the actual page, as is, was sent to me by email as a html page with fields completed. I understand that I would need to remove the "fields" and I think replace with $fieldnames.
Thus, once received, it can be printed as was on the screen.
Does this make sense?
It is so that I can use tables to spread the data out in the email.
The code I use at the moment to send the email is:
sub makemail2 {
print MAIL<<_E_O_M_;
To: $support
From: $senderemail
Subject: $subject
Hey $support,
First Name: $companyname
Last Name: $sendername
Email Address: $senderemail
Telephone: $sendertele
AND TEHRE ARE LOADS MORE WHERE THE ABOVE CAME FROM !!!
Comments: $comments
_E_O_M_
}
I have tried to change it to the following but it doesn't seem to work:
sub makemail2 {
print MAIL<<_E_O_M_;
To: $support
From: $senderemail
Subject: $subject
<html>
<head></head>
<body>
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tbody>
<td valign=top rowspan=2 class="app_body">
<font face=Arial,Helvetica size=5>
<strong>1 </strong></font></td>
<td class="app_body">Name</td>
<td> $fname</td>
</tr>
<tr>
<td class="app_body">Address (1st line)</td>
<td> $address</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Address (2nd line)</td>
<td> $address2</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Address (3rd line)</td>
<td> $address3</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Postal town</td>
<td> $town</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Postcode</td>
<td> $postcode</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Telephone</td>
<td> $telephone</td>
</tr>
<tr>
<td class="app_body"> </td>
<td class="app_body">Email Address </td>
<td> $email</td>
</tr>
</tbody>
</table>
</body>
</html>
Could anyone help me please? (I know I have to rid it of the class= too!)