When I do this:
onClick = "return generateClient('<?php echo json_encode($_POST)?>');"
I am getting this error on the google chrome console.
Uncaught SyntaxError: Unexpected token ILLEGAL
But when I do this from php:
print_r(json_encode($_POST));
I get:
{"lang-select":"C++","question-id":"1","method-name":"Rishi","param-count":"1","lib-path":"c:\\h\\b.out","return-select":"unsigned int","sample-count":"1","class-name":"m"}
What can be the fault in this?