Re: dont print echo
| From: | chetan rane | Date: | Fri, 29 Feb 2008 03:29:19 +0000 |
| Subject: | Re: dont print echo | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270685@lists.php.net to get a copy of this message | ||
>
> I think that will solve your problem
>
> <?
> if(isset($_POST['submit'])){
> $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@gmail.com /
> // 15 40 58 60 02 ///////////////////////////
> +
> _
>
>
>
>
--
Have A pleasant Day
Chetan. D. Rane
Location: India
Contact: +91-9986057255
other ID: chetscool@yahoo.com
chetrane@rediffmail.com