我正在尝试使用发送jquery ajax请求
jQuery.ajax({ method: "POST", url: "some2.php", data: { data: result } }) .done(function( msg ) { alert( "Data Saved: " + msg ); });
此代码正在发送请求,localhost
但在服务器上传时,则出错500 internal error
实时链接放在链接:
http://impulsesoftech.com/jaipurbus
我some2.php
是
"; ?>
我缺少的东西请帮助我
请更换
echo "Distance From Khandar Bus Stand : ".distance($data[0], $data[1], 25.992739,76.379046 "K") . " Kilometers
";
至
echo "Distance From Khandar Bus Stand : ".distance($data[0], $data[1], 25.992739,76.379046 , "K") . " Kilometers
";
distance
在单元参数之前调用函数时缺少逗号.