Can I use php in javascript? -
Beginner's question.
Can I use PHP in JavaScript?
For example in Jquery,
... ... triggers.eq (1) .post ('& lt ;? php administrator / categories / delete' . $ List ['id'] ;; & gt;;;
On the client side, the PHP server is executed on server and javascript PHP Variable can print:
triggers.eq (1) .post (& lt ;? php echo json_encode ('admin / categories / delete /'. $ List ['id'] ) ;; & gt;);
And then like the output:
triggers.eq (1) .post ('admin / categories / delete / 12345');
Comments
Post a Comment