Posted by Richard Formby on 03/12/07 11:55
andy.z@blueyonder.com wrote:
> I'm having trouble working this out ...
>
> Is there a simple way to count how many lines are returned in
> $_POST['myTextArea']
>
> When I look at the $_POST all I see is one line yet there are three.
> I assume something is being interpreted differently depending on how I
> view it.
>
> Is there a simple funtion for this or can someone tell me how to work it
> out please?
Do you reallly have three lines in your textarea, that it three bits of text
seperated by \n (the enter key)? Or, is your textarea simply word-wrapping
the text onto three "visible" lines?
--
Richard.
Navigation:
[Reply to this message]
|