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,026

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
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Fri Jun 30, 2017 9:45 pm

it's works !

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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests