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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -