RE: dont print echo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your script is screwed at the point where you do not close the quote:

 $folder = 'pictures;

-----Original Message-----
From: Emiliano Boragina [mailto:emiliano.boragina@xxxxxxxxx] 
Sent: Thursday, February 28, 2008 11:09 PM
To: php-general@xxxxxxxxxxxxx
Subject:  dont print echo

Hi list?

All this in the same php:

 

<?

         $folder = 'pictures;

         $load = copy($_FILES['file']['tmp_name'] , $folder . '/' . $_FILES
['file']['name']);

         if ( $load ) {

                   echo "Picture upload!";

         } else {

                   echo "no picture =(";

         }

?>

<form action="" method="post" enctype="multipart/form-data">

    <input type="text" name="folder">

    <input type="submit" value="ADD FOLDER">

    <hr>

    <input type="file" name="file">

    <input type="submit" value="UPLOAD">

</form>

 

When I try the php the echo "no picture =("; is there. How can I do to don?t
appears the message before I upload de picture.

Thanks.

 

 

+                                                                          _
   // Emiliano Boragina _

   // Diseño & Comunicación //////////////////
+                                                                          _

   // emiliano.boragina@xxxxxxxxx  /
   // 15 40 58 60 02 ///////////////////////////
+                                                                          _

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux