problem less than ideal form mail
My hosting company (Hostmonster.com) provides a service called "MonsterMail". It lets me set up a form. their example looks pretty typical...
<form action="http://www.hostmonster.com/monstermail" enctype="multipart/form-data" method="POST">
Name: <input type="text" name="Name"><br>
Email: <input type="text" name="mailfrom"><br>
Street Address: <input type="text" name="StreetAddress"><br>
City: <input type="text" name="City"><br>
Zip: <input type="text" name="Zip"><br>
Phone: <input type="text" name="Phone"><br>
<input type="hidden" name="sendtoemail" value="firstname.lastname@example.org"><br>
<input type="submit" value="Send Email"> </form>
So one thing I added was a text area, like this, right after the Phone: line.
<div align="center"> ---- Message ----<br>
<textarea name="Message" wrap="physical" cols="40" rows="10" ></textarea>
well it works, but the problem is that any and all line breaks the user enters in the <textarea> get stripped. If the user write 10 paragraphs, they are all going to run together without a clue as to where he/she intended the line breaks to go. Now I've checked and re-checked. A "textarea", with the "wrap" attribute set to "physical", is supposed to preserve all line breaks, and send them to the server exactly as acquired. Unfortunately thats not the way it is when the email arrives.
I've talked to hostmonster. All they gave me was BS. After trying to pull my leg about line breaks possibly causing a security proble, they finally conceded that the script that controls this, whatever it may be, is so old nobody has a clue about it, and then more BS that if they fixed it they would likely break a lot of hosted web sites. Can you just smell smell the $#!+?
So anyway, my first question is whether this problem is typical of all form mail. Second, is there anything in the form <action> tag that i could change to force the better behavior, and third, if there's really nothing I can do, what other alternatives do I have for form mail that i can use instead, if possible with minor modifications, and (the tough one) free. Obviously I need some hind of server, so if the one my hosting company provides is crap, I'm going to need something I can put in my own "cgi-bin" director that i can use, along with some brain dead instructions for people like me, not very well versed in server side scripting.
Thanks in advance!
* * *
... Second Star to the Right, and Straight on Till Morning!
* * *
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread