使用javascript和php的Fileupload

时间:2015-05-15 10:32:44

标签: javascript

当我使用fileupload时,我无法找到工作的路径 路径显示为C:\fakepath\ram_education (2).sql,但不会在数据库中插入

这是我的代码:

function carrer()
{
    var name=document.careerfrm.name.value;
    var lname=document.careerfrm.lname.value;
    var email=document.careerfrm.email.value;
    var mobile=document.careerfrm.mobile.value;
    var currently=document.careerfrm.currently.value;
    var intrested=document.careerfrm.intrested.value;
    var city=document.careerfrm.city.value;
    var state=document.careerfrm.state.value;
    var zipcode=document.careerfrm.zipcode.value;
    var experience=document.careerfrm.experience.value;
    var resume=document.careerfrm.resume.value;

    url="career_db.php?name="+name+"&lname="+lname+"&email="+email+"&mobile="+mobile+"&currently="+currently+"&intrested="+intrested+"&city="+city+"&state="+state+"&zipcode="+zipcode+"&experience="+experience+"&resume="+resume;
    abc.open("GET",url,true);
    abc.send();
    alert(url);

    abc.onreadystatechange=function()
    {
        if(abc.readyState==4)
        {
            document.getElementById('errorcarrer').innerHTML=abc.responseText;
        }
    }
}

0 个答案:

没有答案