Jump to content


Photo

$_FILES problem


  • Please log in to reply
No replies to this topic

#1 shibbi3

shibbi3
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 17 October 2006 - 07:34 PM

hey everyone,

I was wondering what I am doing wrong here:


<b>Attachment:</b><br /><input type="file" name="probe" value="<?php if (isset($_POST['probe'])) echo htmlentities(stripslashes($_POST['probe'])); else echo ""; ?>" size="20"/></p>
  <br />
  <p><input type="submit" name="form_submitted" value="OK - Submit" /></p>
  <?php
		$fileatt_name = $_FILES['probe']['name'];
		$fileatt_tmp = $_FILES['probe']['tmp_name'];

                       if(empty($fileatt_name))
                       {
                              echo 'empty';
                       }
                         else
                            {
                                  echo 'good';
                        }

?>


It keeps saying that it is empty but there shouldn't be right? lil confused... anyone know?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users