Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, everyone. I still have this

Status
Not open for further replies.

WannaLearn

Programmer
Jul 10, 2001
210
US
Hi, everyone. I still have this problem. On my site I have a form that lets ppl. email me questions and comments, but when I recieve them the information is all jumbled into one huge sentance, like: this+is+a+great+site+sumbmited+on+12/12/12', how can I get it so that the information reaches me in a good manner that I can read it?
This is the form I use


<form name=&quot;form1&quot; method=&quot;post&quot; action=mailto:&quot;myemail@goeshere.com?subject=Love the site.&quot;>
<table width=&quot;430&quot; border=&quot;0&quot; height=&quot;207&quot;>
<tr>
<td width=&quot;114&quot; align=&quot;left&quot; valign=&quot;middle&quot; height=&quot;32&quot;><i><b><font color=&quot;bda94c&quot; size=&quot;3&quot;>Name</font></b></i></td>
<td width=&quot;306&quot; align=&quot;left&quot; valign=&quot;top&quot; height=&quot;32&quot;> <font color=&quot;bda94c&quot; size=&quot;3&quot;>
<input type=&quot;text&quot; name=&quot;textfield5&quot; size=&quot;30&quot; maxlength=&quot;30&quot;>
</font></td>
</tr>
<tr>
<td width=&quot;114&quot; align=&quot;left&quot; valign=&quot;middle&quot; height=&quot;31&quot;><i><b><font color=&quot;bda94c&quot; size=&quot;3&quot;>Your
E-Mail</font></b></i></td>
<td width=&quot;306&quot; align=&quot;left&quot; valign=&quot;top&quot; height=&quot;31&quot;> <font color=&quot;bda94c&quot; size=&quot;3&quot;>
<input type=&quot;text&quot; name=&quot;textfield8&quot; size=&quot;30&quot; maxlength=&quot;30&quot;>
</font></td>
</tr>
<tr align=&quot;center&quot; valign=&quot;middle&quot;>
<td width=&quot;114&quot; height=&quot;22&quot;>
<p><i><b><font color=&quot;bda94c&quot; size=&quot;3&quot;>
<input type=&quot;submit&quot; name=&quot;Submit3&quot; value=&quot;OK, i'm done&quot;>
</font></b></i></p>
</td>
<td width=&quot;306&quot; align=&quot;left&quot; height=&quot;22&quot;>
<p><font color=&quot;bda94c&quot; size=&quot;3&quot;> </font><font color=&quot;bda94c&quot; size=&quot;3&quot;>
<input type=&quot;reset&quot; name=&quot;Submit4&quot; value=&quot;OOPS, made a booboo&quot;>
</font></p>
</td>
</tr>
</table>
</form>
 
Well here is the quick and dirty. If you add enctype=text/pain in your form tag. <form name=form action=&quot;mailto:xxx.com?subject=test&quot; enctype=text/plain method=post> This will clean up your emails so that they are readable. However I do have bad news. It appears that this functionality &quot;action=mailto:xx.com....&quot; is not supported in newer browsers. In the newer browsers it acts just like if you used in on a link and opens up an email for the person to fill out.
 
The alternative is to use a server-side program to decode and format the emails before they are sent to you. I don't know of one, but I could write one in perl. Some of the others in the perl forum might know of one. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Try formmail.pl, it's free at Matt's script archive. It's a perl script and used widely. If you are paying for website hosting you may find it is already in the cgi-bin ready to use. This prints out a column name:bob
addr: 123 main st
ph: 800-800-8000 Etc.
DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top