I define an array in PHP, I would like to call inside the JavaScript function, but how all the error, ask the great God help to see!
PHP Inside:
Js:
'; $Fixe = Filter_input (Input_post, "Idfixe"); $idMobile = Filter_input (Input_post, "idmobile"); $opInstall = filter_in Put (Input_post, "Opinstall"), $VGA = Filter_input (Input_post, "VGA"),//Echo $VGA;//echo $opInstall; $q = new Questio n (); if (Isset ($idMobile)) {echo ''; Echo '';} else if (Isset ($Fixe)) {if (Isset ($opInstall)) {if ($opInstall = = ' OUI ' | | $opInstall = = ' OUI ') {echo ''; Echo '';} else if ($opInstall = = ' Non ' | | $opInstall = = ' non ') {echo ''; Echo '';}} else if (Isset ($VGA)) {if ($VGA = = ' Crea ') {echo ''; Echo '';} else if ($VGA = = ' repr ') {echo ''; Echo '';}} else {echo ''; Echo '';}} Echo '
' If (isset ($Fixe) | | isset ($idMobile)) {if (! isset ($opInstall)) {echo '
Q1
'; Echo '
Oui, toutãfait '; Echo 'Non, pas assez
'; Echo '
' Echo '"; $qst [$index _qst]=" R1 "; $index _qst++;}} Question2////////echo '
Q2
'; Echo '
Oui '; Echo ' Non
'; Echo '
';/////////question3////////echo '
Q3?
'; Echo '
Oui '; Echo ' Non
'; Echo '
' Echo '"; $json _qst = Json_encode ($QST);
The code is too long, and the parts that are not completely important are here.
The entire page of the complete code as above, according to the parameters of the URL with if to determine the number of questions to echo, so with the array to get the current display of the problem name into the JS
Change to an error
This means that your PHP version is less than 5.4 and does not have the short mark feature turned on
You're using the xdebug extension, and you don't even know the Xdebug report format?
But the content of the error message is inconsistent with your description.
Now that you're using JQuery, you're going to use his no-refresh feature.
But you embed PHP dynamically generated data directly into the JS code, which is not the process.
Nor can it play the performance of JQuery.
Change to an error
This means that your PHP version is less than 5.4 and does not have the short mark feature turned on
You're using the xdebug extension, and you don't even know the Xdebug report format?
But the content of the error message is inconsistent with your description.
Now that you're using JQuery, you're going to use his no-refresh feature.
But you embed PHP dynamically generated data directly into the JS code, which is not the process.
Nor can it play the performance of JQuery.
is really a rookie, and the program is not my writing, just found a bug to modify, still in the study
Ask the great God to teach you how to do it in.
Change to an error
This means that your PHP version is less than 5.4 and does not have the short mark feature turned on
You're using the xdebug extension, and you don't even know the Xdebug report format?
But the content of the error message is inconsistent with your description.
Now that you're using JQuery, you're going to use his no-refresh feature.
But you embed PHP dynamically generated data directly into the JS code, which is not the process.
Nor can it play the performance of JQuery.
is really a rookie, and the program is not my writing, just found a bug to modify, still in the study
Ask the great God to teach you how to do it in.
Call directly in front of JS
In
$ (document). Ready (function () {This defines a var str =
Called directly in JS.
Change to an error
This means that your PHP version is less than 5.4 and does not have the short mark feature turned on
You're using the xdebug extension, and you don't even know the Xdebug report format?
But the content of the error message is inconsistent with your description.
Now that you're using JQuery, you're going to use his no-refresh feature.
But you embed PHP dynamically generated data directly into the JS code, which is not the process.
Nor can it play the performance of JQuery.
is really a rookie, and the program is not my writing, just found a bug to modify, still in the study
Ask the great God to teach you how to do it in.
Call directly in front of JS
In
$ (document). Ready (function () {This defines a var str =
Called directly in JS.
It's still going to be the wrong thing to say.
is not JS which block need to add a tag. It's like Smarty's literal tag. To parse.
No, you put that data in aSuch It is then obtained through the DOM element in JS.
is not JS which block need to add a tag. It's like Smarty's literal tag. To parse.
No, you put that data in aSuch It is then obtained through the DOM element in JS.
$json _qst = Json_encode ($QST); Echo '';
var nbr_qst = document.getelementbyname ("Json_qst");
JS here or the error is I write wrong?
is not JS which block need to add a tag. It's like Smarty's literal tag. To parse.
No, you put that data in aSuch It is then obtained through the DOM element in JS.
$json _qst = Json_encode ($QST); Echo '';
var nbr_qst = document.getelementbyname ("Json_qst");
JS here or the error is I write wrong?
Report What is wrong, do not add QQ group say it: 231566327