Jump to content

if empty?


smith.james0

Recommended Posts

[code]<?php
// if an image is uploaded
if(isset($_POST['submit']))
{


I put the code here



}else{
    echo '
    <form method="post" action="'.$_SERVER['PHP_SELF'].'" enctype="multipart/form-data">
       <input type="file" name="image" /><br>
        <input type="file" name="image1" /><br>
        <input type="submit" name="submit" value="upload and resize image" />
    </form>
';
}
?>[/code]

I need it to check if there is anything in 'image1'
Link to comment
https://forums.phpfreaks.com/topic/3574-if-empty/#findComment-12465
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.