RE: [PHP] Callin PHP gurus...figure this out
| From: | John Holmes | Date: | Fri, 26 Apr 2002 15:06:04 +0000 |
| Subject: | RE: [PHP] Callin PHP gurus...figure this out | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94725@lists.php.net to get a copy of this message | ||
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:r@jumac.com]
> Sent: Friday, April 26, 2002 3:08 PM
> To: php-general@lists.php.net
> 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