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