|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
help with php and textarea
hi
I have this code: PHP Code:
and I am trying to show what I type in the textarea on the screen. The thing is that I that what I am writing in the textarea to appear in the source of the code in one line even if I am writing more when one line. As you can see I tried replacing the \n charter white nothing but it didn't work. Dose someone have an idea? Thanks. |
|
#2
|
|||
|
|||
|
add this line
global $mes; i tryed your code, even without that line it worked for me |
|
#3
|
|||
|
|||
|
If you're using PHP v4.1+, then replace $mes with $_POST["mes"]... maybe your PHP ini settings or somethnig... but yeah, as ben said, that code should work fine...
|
|
#4
|
|||
|
|||
|
You misunderstood me.
The code works fine but it doesn’t do what I need. For example: If I will write in the textarea- Hello how are you? It will appear in the source of the page in three line but I want it to appear in the source like this: Hello how are you? how can I do that? |
|
#5
|
|||
|
|||
|
I got the answer.
I need to replace the \r\n thanks any way. |
|
#6
|
|||
|
|||
|
what does the \r do???
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > help with php and textarea |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|