请帮帮我。我有一个表单,它从客户端表单的上传字段中收集图片,并将图片打印在用户页面上。这在本地主机上工作得很好,它看起来像下面的 Ilamini Ayebatonye 非常感谢
NAME: Name Surname
EMAIL ADDRESS: email@provider.com
HOME ADDRESS: 123 Random Street, FakeTown
PHONE NUMBER: 012345678911
QUALIFICATION: I.C.T Certificate
SECTOR: CCNA
INTEREST: please put in your interest
请打印此单,附上您的简历和证书复印件,并在研讨会当天随身携带。
但问题是当我上传网站并尝试注册图片时不会再次显示,
我看到的是下面
ECO9JA-CREATING JOBS IN ICT
Backgrounds_15670_zps11bc080d.png
NAME: Name Surname
EMAIL ADDRESS: email@provider.com
HOME ADDRESS: 123 Random Street, FakeTown
PHONE NUMBER: 012345678911
QUALIFICATION: I.C.T Certificate
SECTOR: CCNA
INTEREST: please put in your interest
请打印此单,附上您的简历和证书复印件,并在研讨会当天随身携带。
感谢您注册
图像变量的脚本如下,表单上传和打印 fxn 如下:
多变的
<?php
$file= "file.csv";
$name = $_POST['name'];
$email = $_POST['email'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$qualification = $_POST['qualification'];
$sector = $_POST['sector'];
$interest = $_POST['interest'];
$image= $_POST['image'];
<input type="hidden" name="MAX_FILE_SIZE" value="500">
<P>
<br>
<input type="file" name="image" value="upload" >
在用户页上打印此代码
<?php print"<img src=\"$image\" width=\"100px\" height=\"100px\"\/>";?>