PDA

View Full Version : Form to email: Nothing from textarea



Rosie1384
01-03-2012, 09:13 AM
Hi all,
I've seen a few threads relating to the textarea problem, but in most, it was not resolved or was resolved by changing the textarea to a simple text box. However, since the people submitting my form might potentially have quite a few characters entered in the inputs I've created as textareas, I would like to let them see more of what they have typed than simply one line that scrolls, since what I've found on the internet says you cannot make text boxes wrap.

Is there a way to send a form through email, whether via bluemail, cgi email, or php, that will actually send the data from the textareas? Or is there a way to make the text boxes wrap input? If so, what's the code?

The code I've tried with Bluemail is
<input type="hidden" name="questions" value=message>
with "value=message" varying as =1, = "", etc, but regardless of what I put, the email sends whatever I put as the value, not what was entered in the textarea.

Bluehost hasn't actually made my domain so that it uses my pages yet, so I can't tell if I even have the right code for cgi email. The code currently entered is
<form id='Schedule' action="http://www.renegade-computers.com/bin/cgiemail/public_html/cgi-bin/scheduleservice.txt" method="post">

Similar story for php - I can't get it to work just "from my computer" and I can't get the page through Bluehost yet to see if it will work.

Any info would be great! Thanks so much!

Justin
01-29-2012, 12:53 AM
I don't think many people use Bluemail these days. Consider developing a custom form script or purchase an affordable one online.

alemcherry
01-31-2012, 05:57 AM
First of all, i don't understand what Bluemail, CGI mail are.

You just need few lines of code in PHP to send a form submitted as an email. There are lots of free code samples available all over the net, just get any and you are ready to go.

There is absolutely no difference in data being posted from a text area or textbox on the serve side. In my 10+ years experience as a PHP coder, I am yet to see any such issues. Obviously you are making some silly mistakes.

Use a php script and post the code here, if you are unable to fix it.

LynnPlumbing
02-01-2012, 09:17 PM
Great post, although I would also note that adding word restriction to your comments might backfire. I understand wanting to cut down on spam, but it also adds another barrier for the commenter, and I think it's more beneficial to make commenting as easy as possible.

AnnaS1980
02-29-2012, 11:53 PM
Can anyone here help me troubleshoot a php issue Im having? Ive created a simple php form handler which seems to work except for the resulting email. The only thing I receive is the Subject. The body of the email is blank.

Heres my form:

Code: