Author Topic: Custom data to php  (Read 1869 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Custom data to php
« on: May 03, 2018, 06:22:27 pm »
Would like to add custom data (php?test=test) to the php when using dataModel remote.

Tried:

Code: [Select]
postData: "{test:test}",
in dataModel...but it gets split into single characters when getData is executed...how should I do this correctly?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Custom data to php
« Reply #1 on: May 03, 2018, 07:24:27 pm »
I presume you mean getData in remote php script.

please use postData: { test: "test" }

https://paramquery.com/pro/api#option-dataModel-postData

Also try it with stringify: false

https://paramquery.com/pro/api#option-stringify