I've been saving data in this HashSet of strings and i want to send that HashSet to a php file (web service).this is just an exemple of what am trying to do. in the app am working on the list's length which is about 20.
My question is, is there a way to pass a list to a WWWForm ? if not is there any other way?
string CreateUserURL = "localhost:81/ARFUR/InsertUser.php";
// Use this for initialization
void Start () {
HashSet<string> list = new HashSet<string>();
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown(KeyCode.Space)) CreateUser(inputUserName, inputPassword);
}
public void CreateUser(string username, string password){
WWWForm form = new WWWForm();
list.Add(username);
list.Add(password);
// What I want to do
form.AddField("list", list);
WWW www = new WWW(CreateUserURL, form);
}