Note that there are some explanatory texts on larger screens.

plurals
  1. POHow To Print Images with PHP print function
    text
    copied!<p>Please help me out. I have a form that collects picture from an upload field in a client form and the picture to be printed out on the user page. this work perfectly well on localhost and it looks like the below Ilamini Ayebatonye Thanks A lot </p> <pre><code>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 </code></pre> <p>Please Print this slip, attached your C.V and photocopies of your credentials and come with it to the day of the seminar.</p> <p>but the problem with is that when I uploaded the site and try registering the picture won't show again,</p> <p>what i see is the below</p> <pre><code>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 </code></pre> <p>Please Print this slip, attached your C.V and photocopies of your credentials and come with it to the day of the seminar.</p> <p>THANKS FOR REGISTERING</p> <p>the script is below for the image variable the form upload and the print fxn are as follows:</p> <p>VARIABLE</p> <pre><code>&lt;?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']; &lt;input type="hidden" name="MAX_FILE_SIZE" value="500"&gt; &lt;P&gt; &lt;br&gt; &lt;input type="file" name="image" value="upload" &gt; </code></pre> <p>PRINT THIS CODE ON USERPAGE</p> <pre><code>&lt;?php print"&lt;img src=\"$image\" width=\"100px\" height=\"100px\"\/&gt;";?&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload