Php 我想显示图像而不是输入类型=";文件";

Php 我想显示图像而不是输入类型=";文件";,php,jquery,html,Php,Jquery,Html,我编写了以下代码,但现在没有得到文件字段的值 <div class="image-upload" style="position: absolute; margin-top: -39px; margin-left: 376px;"> <label for="file-input"> <img width="50%" height="50%" src="images/camera-icon.png"> </label>

我编写了以下代码,但现在没有得到文件字段的值

<div class="image-upload" style="position: absolute; margin-top: -39px; margin-left: 376px;">
    <label for="file-input">
       <img width="50%" height="50%" src="images/camera-icon.png">
    </label>
   <input type="file" id="prod_pic" name="imgfile" style="display:none;">
</div>

我创建了一个自定义文件输入,下面是代码:

<span class="customInputFile">
    <div id="fileUpdate">
        <div id="fileUpdate-left">
            Anexe o seu currículo
        </div>
        <div id="fileName"></div>
    </div>
    <input type="file">
</span>


$('#fileUpdate').on("click", function() {
    $(this).next('input[type="file"]').click();
    $(this).next('input[type="file"]').change( function(){
        fileName = $(this).val().replace(/C:\\fakepath\\/i, '')
        $('#fileName').text(fileName).animate({
            marginTop: '13px'
        });
    });
});


.customInputFile{
    display: block;
    margin: 0 0 10px 0;
    cursor: pointer;
}
.customInputFile input[type="file"] {
    display: none;
}
.customInputFile #fileUpdate {
    background: rgb(114,191,68);
    display: block;
    padding: 25px 0; 
    color: rgb(255,255,255);
    text-align: center;
    overflow: auto;
}
.customInputFile #fileUpdate #fileUpdate-left{
    display: inline-block;
    width: 190px;
    font-size: 20px;
    line-height: 23px;
    font-family: 'museo_sans500';
    text-transform: uppercase;
    text-align: left;
}

阿内克斯·奥修库里库洛
$('#fileUpdate')。在(“单击”,函数()上){
$(this).next('input[type=“file”]”)。单击();
$(this).next('input[type=“file”]”)。change(function(){
fileName=$(this).val().replace(/C:\\fakepath\\\/i,,)
$('#文件名')。文本(文件名)。动画({
玛金托普:“13px”
});
});
});
.customInputFile{
显示:块;
裕度:0 10px 0;
光标:指针;
}
.customInputFile输入[type=“file”]{
显示:无;
}
.customInputFile#文件更新{
背景:rgb(114191,68);
显示:块;
填充:25px0;
颜色:rgb(255255);
文本对齐:居中;
溢出:自动;
}
.customInputFile#文件更新#文件更新左{
显示:内联块;
宽度:190px;
字体大小:20px;
线高:23px;
字体系列:“museo_sans500”;
文本转换:大写;
文本对齐:左对齐;
}
这是一把小提琴:


以我的代码为例,按照您的方式进行样式化…

您也可以添加PHP代码吗?您需要设计帮助或PHP代码帮助吗?实际上,在Jquery中,我没有得到文件字段$(document)的值;try
现在没有得到文件字段的值
什么???