Skip to main content
Participant
May 18, 2008
Question

js-php

  • May 18, 2008
  • 1 reply
  • 217 views
how can i execute some php commandes inside my js code without going to a new page

thanx in advance
This topic has been closed for replies.

1 reply

Inspiring
May 18, 2008
.oO(mehdi abedanzadeh)

>how can i execute some php commandes inside my js code without going to a new page

PHP runs on the server, JS on the client. Two completely different
things. At the time of the JS execution the PHP script is long gone.

You might want to have a look at mechanisms like AJAX to invoke
additional HTTP requests from within the currently shown page.

Micha