.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