473,378 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Textarea problem in form: values not recognised

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
2 3208
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tna | timothy gardiner | last post by:
tna | email messageHi everyone! Question for you... I've written several scenarios where the end user needs to enter data into a textarea (descriptions, messges etc) which becomes part of a...
3
by: Sunil Kulkarni | last post by:
I need to validate my TextArea as follows: 1) IT SHOULD ALLOW FOR ONLY 5 COLUMNS 2) IT SHOULD ALLOW ONLY 65 CHARACTERS PER ROW I need some kind of a JS validation for the same. I have tried...
4
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go,...
3
by: Junoon | last post by:
hi all, I am trying to get the values of the item selected in a select list box into a textarea, but the code is not working....Where am i going wrong???? whenever i click on any item in the...
2
by: danielboendergaard | last post by:
Hey Im making a homepage in php. I use a html form to put data into mysql and i want to make some buttons which inserts user input values into a textarea. I have used a button like this: <input...
16
by: Jen | last post by:
Hi. I have this problem that I think should be easy but have been struggling with this for days. I have a list based on a recordset from a database. This list consists of records meeting a certain...
14
by: ghostwalker | last post by:
Hi I have an HTML form with a textarea on it. When submitted (using 'get' not 'post') this forms action php file simply does this to retrieve the values: $message = $_GET; Now it all works...
4
by: jim | last post by:
Hi, I have a form that accepts free text from users in a single textarea field. I would like for a select list of words (15 or so) to autopopulate as the user types. For example, instead of...
3
by: FunkHouse9 | last post by:
I'm working on a form to collect data in a textarea which and am trying to keep returns and spaces. I have a couple of functions that I Frankensteined together to replace returns with <br> and to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.