hi,
i post this variable (a long string with all the users answers) to php (from Flash):
answers="question1=1,question2=3,question3_1=1,question3_2=3,question4=Hallo World, ... "
(there will be no other commas or double quotes or any special characters in the answers, so there will be no need to check that)
now, i want to save it into a CSV File.
question1|question2|question3_1|question3_2|question4|...
1 | 3 | 1 | 3 | Hallo World | ...
When the next User sends his answers to php, i would have to open the CSV File and write a new long row with the new answers into it and save/close everything again...and so on...
question1|question2|question3_1|question3_2|question4|...
1 | 3 | 1 | 3 | Hallo World | ...
1 | 1 | 2 | 2 | newbie | ...
i am not completely stupid, but i just don't know where to start. :-) (and i am new to php)
i think i will have to deal with
fgetcsv()
fclose();
explode()
and that kind of string handling and array management.
could some point me in the right direction, tell me how to start or just help me in any way?
thank you very much,
waxman