How to do ajax request with a parameter

Get help using Construct 2

Post » Fri Jun 30, 2017 3:39 pm

hello (excuse my english)

I can write to the txt file on my server with ajax request.
But the variable recovered is the name of my variable instead of its value.
I think there is a problem with the quote in my code. no ?

In my txt file it writes "varcode" instead of its value in construct.

"http://www.mydomain.com/essai.php?fcode=varcode"

Where is the error or what is missing?
please. :)
B
12
S
3
Posts: 147
Reputation: 2,021

Post » Fri Jun 30, 2017 6:48 pm

Code: Select all
"http://www.mydomain.com/essai.php?fcode=varcode"


try

Code: Select all
"http://www.mydomain.com/essai.php?fcode="&varcode
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823

Post » Fri Jun 30, 2017 9:45 pm

it's works !

Thank you Korbach :)
B
12
S
3
Posts: 147
Reputation: 2,021


Return to How do I....?

Who is online

Users browsing this forum: David181 and 17 guests