Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

js-php

New Here ,
May 18, 2008 May 18, 2008

Copy link to clipboard

Copied

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

thanx in advance
TOPICS
Server side applications

Views

168
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 18, 2008 May 18, 2008

Copy link to clipboard

Copied

LATEST
.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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines