Ribis - get the text you want with ajax, then separe a value that you want for each variables
example:
1? - Request a text "100|1|2|" from an url using Ajax
2? - On Completed Ajax Request
- Then set "Healt" variable value to tokenat(AJAX.LastData,0,"|")
+ set "Point" variable value to tokenat(AJAX.LastData,1,"|")
+ set "Level" variable value to tokenat(AJAX.LastData,2,"|")
thank you, is working perfectly, with this I make my script better than before, but I have another question, if I have one text like this:
100|20|0|0|0
200|50|20|0|0
90|10|20|20
it's possible to organize the variable for the newline? I mean, with this I have to make 5 text and I made 5 different file in php... if I can use one text line for all of my variable will be perfect, because I will use just one file in php... I can use the same method for one line, but if in the future I add something in my database i need to edit all order, would be a little bit confused...
Thank you very much again