Use wordwrap() to wrap the text to 75 characters and str_replace() to replace " with '
www.php.net/wordwrap www.php.net/str_replace ---John Holmes... > -----Original Message----- > From: r [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 3:08 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Callin PHP gurus...figure this out > > Greetings All, > (Special greetings go out to Steve for excellient previous help - Thanks > again dude) > Calling all PHP gurus, have broked my head over this but cant seem to > figure > this out in c,perl or java servlets. > Am new to PHP so dont even know the common functions leave alone the > answer > to this problem. > Heres the setup: > I have a form with just one TEXTAREA > Data from this form is entered directly into the database > > BUT... > > everytime a user presses the ENTER or RETURN key on the keyboard, when the > PHP script validates the form > I want it to add <br> it should also add a <br> if the line is > sayyyyy....75 > charactors long & if there is no <br> or enter key pressed.. > If it finds any " it should convert it to ' > > Any ideas? > > Any help appreciated. > Have a great day. > -Ryan A. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php