Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a textarea that I want a use

Status
Not open for further replies.

neoBinary

Programmer
Joined
Jan 17, 2003
Messages
7
Location
GB
I have a textarea that I want a user to copy and paste into. The data pasted once submited is passed within a variable and outputed into a td within a table.

This is all working fine. What the problem is is that the table is forced to stretch. How do I make the text wrap within the td? I've tried so many things I must be over looking something. Got any ideas?

Does anyone know a php script that will add a \n every 15 words of so?

Thanks for any help.
 
spookie:
Nice one, I'm just getting into PHP and have not come accross the wordwrap() function yet. It is just what I needed. It is so obvious now.

Thanks for the help.

sleipnir214:
Thank you very much for your link, I will take more care in future and treat this place with extreme caution and try to be as formal as I can. I was in a rush and too informal, I can see now.

However, your answer is a HTML answer. What you suggest is a very arrogrant response indeed, do you really think that I have not set the width. When I posted I had forgot to fill in the subject area and this clearly placed the begining of my question into the subject area.

 
neoBinary

Welcome to PHP.


Thank you very much for your link, I will take more care in future and treat this place with extreme caution and try to be as formal as I can. I was in a rush and too informal, I can see now.

As far as this goes , this is the signature sleipnir214 uses. You will find this link in each and every post of his. So i am sure it is not specifically meant for you.

As far as my experience in this forum is concerned sleipnir214 always try to help others. i didnt find his post arrogant at all.He was just trying to help you.

Anyway happy PHP learning :)

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
lol

sleipnir214: Sorry, didn't realise this was your sig. Be good if you have a --------------------------------------------------------------------------
to make it look like your sig

spookie: Thanks for pointing that out, looks like I was being arrogant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top