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

output from a <textarea>

tolkienarda
100+
P: 316
hi all

i have a text area and when i submit that to a php page what does the php recive.

example if i type :
first line
second line
two spaces

does it send somthing like
first line<br>second line<br>two &nbsp;<br>

or is somthing else sent to the php script

thanks for any input

eirc
Feb 13 '07 #1
Share this Question
Share on Google+
4 Replies


ronverdonk
Expert 2.5K+
P: 4,258
Unless you have an html editor hooked into your textarea, like whizzywig or alike, you get the data as typed incl. \n .

Ronald :cool:
Feb 13 '07 #2

tolkienarda
100+
P: 316
Unless you have an html editor hooked into your textarea, like whizzywig or alike, you get the data as typed incl. \n .

Ronald :cool:
ok so when after i save it in my database and reaccess it i will need to convert the /n to <br />.

i will try that, thanks

eric
Feb 13 '07 #3

tolkienarda
100+
P: 316
got it working thanks and wow am i stupid

eric
Feb 13 '07 #4

ronverdonk
Expert 2.5K+
P: 4,258
got it working thanks and wow am i stupid

eric
Nobody is stupid as long as one learns from it.

Ronald :cool:
Feb 13 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.