By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Textarea problem in form: values not recognised

P: n/a
In a php form that should be send by email, I have been puzzling the whole
night long about the fact that the content of a textarea was not passed
through the email message. Curiously enought it worked when I omitted the
standard text in the text area, so
<textarea name = "reaction">Please give your reaction here</textarea>
the value $reaction in my mailform script remained empty.
<textarea name = "reaction"></textarea>
however, worked properly.
I detected this by coincidence because I had written almost a similar script
for another site but without default values in the text area. I couldn't
find any explanation for this behaviour on the web.
Any ideas?

Thanks on beforehand, Martien van Wanrooij
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Martien van Wanrooij wrote:
In a php form that should be send by email, I have been puzzling the whole
night long about the fact that the content of a textarea was not passed
through the email message. Curiously enought it worked when I omitted the
standard text in the text area, so
<textarea name = "reaction">Please give your reaction here</textarea>
the value $reaction in my mailform script remained empty.
<textarea name = "reaction"></textarea>
however, worked properly.
I detected this by coincidence because I had written almost a similar script
for another site but without default values in the text area. I couldn't
find any explanation for this behaviour on the web.
Any ideas?


Can you please try to send us an link to the whole source? Maybe with an
working example with an phpinfo(); on the page that you submit to?

Regards,
Johan

Jul 17 '05 #2

P: n/a
Is it useful to mention the following:

$reaction = $_POST["reaction"];

..Nico

"Martien van Wanrooij" <in**@martienvanwanrooij.nl> schreef in bericht
news:3raxb.134$7U1.1272@amstwist00...
In a php form that should be send by email, I have been puzzling the whole
night long about the fact that the content of a textarea was not passed
through the email message. Curiously enought it worked when I omitted the
standard text in the text area, so
<textarea name = "reaction">Please give your reaction here</textarea>
the value $reaction in my mailform script remained empty.
<textarea name = "reaction"></textarea>
however, worked properly.
I detected this by coincidence because I had written almost a similar script for another site but without default values in the text area. I couldn't
find any explanation for this behaviour on the web.
Any ideas?

Thanks on beforehand, Martien van Wanrooij

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.