[PHP] Newline in a guestbook

2001-04-24 Thread Jimmy Bäckström
Hey guys! I'm writing a guestbook with mysql. My probblem is that when user enter at long word like blablablablablablablablablablablabla my html-tables gets screwed up. If someone is just fooling around the whole page design can be destroyed. I want to know how I can make sure that no word is

Re: [PHP] Newline in a guestbook

2001-04-24 Thread Henrik Hansen
Jimmy Bäckström [EMAIL PROTECTED] wrote: I thought about reading the whole message into an array, and then loop through it and for each word check whether it is larger than x chars, and if so, change it. But couldn't that be a very memory consuming script if it should do that for every

Re: [PHP] Newline in a guestbook

2001-04-24 Thread Plutarck
You can also use the strlen() function. -- Plutarck Should be working on something... ...but forgot what it was. Jimmy Bäckström [EMAIL PROTECTED] wrote in message 000a01c0cd06$351f1060$[EMAIL PROTECTED]">news:000a01c0cd06$351f1060$[EMAIL PROTECTED]... Hey guys! I'm writing a guestbook with