printing the response from a WWWForm

on this page:

of the docs, it shows how to submit a few fields to a url, get a reply and then it says:

// show the highscores

Would be great if I could see how to handle the returned data as a string.
I’m working on parsing this and interacting with a database.

If anyone’s interested, I’ll post a “how to do this” or something. I think it will be very powerful and expose some very cool possibilities. I’m using .Js in Unity and PHP and MySQL on the remote end.

Thanks!

The url.data is returned as a string, that you can search, split, format and do anything you want with.

So, you need to work out (a) how you are going to format the result from your database, and (b) what you need to do in Unity to rip apart the single string that gets returned so you can format it.

You could write a basic CSV parser that splits your string by a specified delimiter or put special codes inside your string that you search for in unity to use as formatting placeholders.

It really just depends on what you need.

I really appreciate your help.

GOT IT!!!

Thanks so much!!! you mean ‘download**.data**’

This makes so much sense now!

Thank you very much!!!

StuntMania and Turret Wars are both awesome games!
I have to tell you that.