using UnityEngine;
using System.Collections;
public class postURL : MonoBehaviour {
void start()
{
string url =“http://localhost/bop/LES003_recieve.php”;
WWWForm form = new WWWForm();
form.AddField("theName","value1");
form.AddField("theNumber","value2");
WWW www = new WWW(url,form);
StartCoroutine(WaitForRequest(www));
}
IEnumerator WaitForRequest(WWW www)
{
yield return www;
if(www.error == null)
{
Debug.Log("WWW Ok!: " + www.text);
}
else
{
Debug.Log("WWW Error: " + www.error);
}
}
}
this does nothing… why?