Getting variable value from PHP with jQuery

前端 未结 4 1506
一向
一向 2021-01-16 07:50

So how do i get variable value from php file with jquery...? the jquery code is in other file (tpl)

for example i have register.php and register.tpl (template file f

4条回答
  •  心在旅途
    2021-01-16 08:15

    It will work if you do

    echo "1";
    

    and then

    if(result == "1") {
    

    If it doesn't (but I've checked on a code of mine without the quotes, it didn't work, with, it was ok), check the response from Firebug console.

提交回复
热议问题