PHP Tutorials:How to call PHP function from javascript in php

preview_player
Показать описание
This video will show you How to call PHP function from javascript in php.

You can see how php execute function on button click

PHP Tutorials for beginners.

You can see how server side php function call by using client side JavaScript code

#techquerypond

Рекомендации по теме
Комментарии
Автор

Dear Sir, it works if we write var Result =<? php php_Function();?>; and write php and javascipt in the same file. With sperated js file is does not work. How to fix it ?

haidangquang
Автор

Simple and perfect!! Thank you, Grazie.

giorgiolaconi
Автор

this is one of the best video on yt! THANKS MAN

Adam_
Автор

You man, you just saved my day and my school project!

michaeld
Автор

To me it doesnt work, It just returns the results as "<php? php_func();?>"(string)

lukhanyomagwebu
Автор

Thank you for this video, The big question is: you have a variable defined in JavaScript like var strAddress="c:". how can i use i use it's value as a variable for a function in PHP? fillTree('c:'); ?>"

dumitrudan
Автор

how to pass java script variable as parameter in php function?

karanvohra
Автор

How to I pass parameters in php function 😭😭

mr.snooze
Автор

This example does not work with more complex php functions !!

carolelachance
Автор

I cannot see my php code in the chrome console. Do you have any idea of what I can do ?

carolelachance
Автор

its not working for me, It just returns the results as <?php php_func();?>

barnivagyoklol
Автор

Hy every one is some one how can we call a php fonction wtih tow or three parameter. Thank for your help.

storageinfo
Автор

can anybody teach me y did he returned false in javascript function

imranraja
Автор

Why so many dislikes? This works fine..

J_R_Games
Автор

Haha, you don't call php in your javascript, php do all the hard work and send the complete parsed output to the browser, it is generated on the server!

codebeat
visit shbcf.ru