Re: [PHP] massive words

2002-06-02 Thread Michael Davey
Also, if you are really worried about placing too much load on the server, you could use JavaScript to check the form submission on the client side using the same technique... Mikey Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... First, you

[PHP] massive words

2002-06-01 Thread Justin French
hi all, looking for some advice on the best way to approach this: i have a guestbook running on a few sites, and occasionally we get creative people who think it's a good idea to post messages with really long words or URLs into the text, which totally mess up the layout of the page. what I

Re: [PHP] massive words

2002-06-01 Thread Bogdan Stancescu
First, you don't need to explode and then implode - just use a different var for the exploded array and use the original after the test. My suggestion for testing (but you really must test it and see if it's faster or slower than your method) is using wordwrap() with your max word length and

Re: [PHP] massive words

2002-06-01 Thread Justin French
Thanks! Justin on 02/06/02 1:18 PM, Bogdan Stancescu ([EMAIL PROTECTED]) wrote: First, you don't need to explode and then implode - just use a different var for the exploded array and use the original after the test. My suggestion for testing (but you really must test it and see if it's