title: Unity uploading player data text file to server, need some guide format
body: <p>I need some guide in data format/syntax with php.</p>
  
  <p>I have a simple form in my app, so user should fill the form and submit, Am successfully uploading my text file to my server, but need some good format.</p>
  
  <p>Here is my code</p>
  
  <pre><code>[Header("Input Fields")]
  public InputField userName;
  public InputField mobileNo;
  public InputField coinsToRedeem;
  [Header("Data Strings")]
  public string usernameText;
  public string mobileNoText ;
  public string coinsText;
  public void GetSetData()
  {
      usernameText = userName.text;
      mobileNoText = mobileNo.text;
      coinsText = coinsToRedeem.text;
      StartCoroutine(UpLoadUserData());
  }
  IEnumerator UpLoadUserData()
  { 
      WWWForm form = new WWWForm();
      form.AddField("name", usernameText);
      form.AddField("data", mobileNoText +","+ coinsText);
      UnityWebRequest www = UnityWebRequest.Post("https://myserver/UserData.php", form);
      yield return www.SendWebRequest();
      if (www.isNetworkError)
          Debug.Log(www.error);
      else
          Debug.Log("Uploaded");
  }
  </code></pre>
  
  <p>PHP CODE</p>
  
  <pre><code>&lt;?php    
      if(isset($_POST['name']) &amp;&amp; isset($_POST['data'])){
          file_put_contents($_POST['name'].".txt", $_POST['data']);      
          echo "uploaded.";
      }else{
          echo "invalid file uploaded.";
      }  
  ?&gt;
  </code></pre>
  
  <p>So now the data text file is uploading, and in the text i got the data like this format
  "Mobile Number, Number of coins"</p>
  
  <p>But i need below format
  "Mobile Number
  number of coins"
  So, how can i write like this? Or how to add more fields?
  thanks.</p>