How do I save text inputs in a CVS file

Get help using Construct 2

Post » Fri Nov 28, 2014 1:44 pm

Hi,

I have to text field boxes (name and age). I want to save this values in a csv file (located on a server). Each submittion should be a extra line in the csv file.

CSV file submittions:

1) Max Musterman | 18 (Line 1)
2) Hans Solfinger | 29 (Line 2)
3) ... (Line 3)
....

Do anybody know how to do that? I'm open for any ideas :)

input_csv.capx


Thanks for your help!
You do not have the required permissions to view the files attached to this post.
Image Image iTunes: Match3 | Google Play: Match3
B
102
S
37
G
31
Posts: 1,162
Reputation: 28,869

Post » Fri Nov 28, 2014 5:09 pm

You will probably want to do some AJAX post request processing from your server. On submit, post AJAX request with your data, you server side script should then take that data and append it to a CSV file with the method of your choice.
B
74
S
31
G
25
Posts: 994
Reputation: 19,698

Post » Fri Nov 28, 2014 5:13 pm

Thanks for that hint. The problem is that I have no experiences with AJAX.
Probably there will no other way to do that right?
Image Image iTunes: Match3 | Google Play: Match3
B
102
S
37
G
31
Posts: 1,162
Reputation: 28,869

Post » Fri Nov 28, 2014 5:41 pm

Your server has to receive data and append it to your CSV file. The only way to do that in C2 is indeed via an AJAX post action to a server side script (PHP, ASP or whatever). It's quite straightforward if you know what you're doing.
B
74
S
31
G
25
Posts: 994
Reputation: 19,698


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests