How do I do send a linebreak via ajax to PHP?

Get help using Construct 2

Post » Tue May 12, 2015 12:06 am

I send "Hello\n World" via Ajax to a PHP file. How to achieve the following:
Code: Select all
Hello
World


It prints:
Code: Select all
Hello\n World

Thank you
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Tue May 12, 2015 7:15 am

Needs to be url encoded, use %0A instead of \n
B
32
S
7
G
2
Posts: 317
Reputation: 2,851

Post » Tue May 12, 2015 9:32 am

thank you
B
12
S
3
Posts: 211
Reputation: 1,477


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests