javascript - Why won't JSON accept my PHP variable? -
I can not get Here's my jQuery for submitting data: As an idea why failing to deposit using PHP variables? If I type Note: I am not using EDIT: The real problem was with Chrome's browser settings in fact it was caching my JavaScript and ignoring any updates in the files, so I kept the change and did the same Received results. This is probably because your server does not have configuration enabled. Because of this, the following line is not parsed as a PHP code, but rather considers it plain text. Use this instead: < pre> The short tag is considered to be a pod in the coding world, because if you ever It also needs to migrate the code that does not support it, or you can not enable it when you just go with the normal tag, then you have to edit all your code for that environment however < / em>, in the form of 5.4.x A., default are less capable hands tagged and parsed in any PHP document. But it is good to keep in mind the different environments. jQuery.ajax calls to use my PHP string variable < Code> $ defaultTicker . I have tried encoding for utf8 and trim any kind of "special" characters, but nothing has been able to help if I see the page source, then I see a valid JSON array :
{"ticker": "spy", "startday": 1, "and de": 30} .
$ .ajax ({url: "findCorrelated.php", // why not
SPY to
& lt; Default of in the hardcode , then it will be successful. However, when looking at the source, the results appear the same.
json_encode on a PHP array, because
startday and
endDay value coming Client-side JavaScript
"ticker": "& lt;? = $ DefaultTicker?>,
"ticker": "& lt; php echo $ defaultTicker ;?"
Your work is very good and I appreciate you and hopping for some more useful posts.
ReplyDeleteMovers and Packers in Surat
Packers and Movers in Vadodara