debug javascript, php issue

已完成 已发布的 May 31, 2013 货到付款
已完成 货到付款

Need help debugging a javascript call to php. Trying to post data to a php script and then echo back a response. The actual issue is that response always =''.

$.post("../contents/[login to view URL]"+$("#userform").serialize(), {

}, function(response){

if(response==1)

{

// do something

}

else if(response==0)

{

// do something else

}

});

serialize is working and generating the form data to pass. But attempting to echo response in php file doesn't ever return a value. response always = ''. I even created a separate php script that did nothing more than echo 1 and response was still = ''.

I know this used to work, can't figure out the issue. Need help asap.

Need to get php code to return appropriate response code and also make sure it is saving the posted data to mysql db (again, this was working). Could be there is nothing wrong with the php code but the relative path in the javascript routine isn't working. However, that line of code hasn't changed and it was working before.

I will provide ftp/cpanel details to coder who is selected.

Thanks

JavaScript MySQL PHP 软件构架

项目ID: #4578180

关于项目

12个方案 远程项目 活跃的Jun 1, 2013

授予:

MakeYouBelieve

Hi, I can fix it for you. Thanks.

$30 USD 在0天内
(46条评论)
4.8

有12名威客正在参与此工作的竞标,均价$62/小时

FASTGuru

HI Sir! Expert PHP developer is here. I can fix the issue ASAP. Please discuss in PMB and lets start.

$39USD 在1天里
(227条评论)
8.2
gopalvora

Hi ready to start thanks

$195 USD 在5天内
(537条评论)
8.4
hoangvandungbk

hello, i can help you fix fast

$54 USD 在0天内
(438条评论)
7.7
acesolution

lets do it now.......Thanks

$44 USD 在0天内
(123条评论)
6.7
jayphprock

Hello sir, i have read the requirement and i am able to solved this issue within 2 hours. Give me one chance so i can prove myself.

$55USD 在1天里
(39条评论)
5.5
gopasoft

Hi, I would like to start this project ASAP. Please check your inbox for more details. Thank you!

$70 USD 在3天内
(51条评论)
5.5
proauthor

Hi, Ready to start your work. Eagerly awaiting for your positive reply. Please check your inbox for further details. Thanks, Shaik.

$34 USD 在0天内
(23条评论)
4.6
roflmao456

ready to start work! can be done today.

$35USD 在1天里
(6条评论)
3.5
igotmail9

I can debug this.

$59 USD 在3天内
(5条评论)
3.0
naderchibani

Hello I'm PHP expert i can do this work right now if you want i'm familiarised with JQuery Ajax and PHP problemes I'm a web developper and JQuery expert

$35USD 在1天里
(0条评论)
0.0
hardikmmistry

Having healthy work experience of 2 years in Java script, AJAX, JQuery that make me perfect to complete this task.

$88 USD 在2天内
(0条评论)
0.0