Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

[PHP3] Upload in PHP4 RC2 From: Srimanth R.C. (srimanth <email protected>)
Date: 05/15/00

Have any of you tried file uploading in php4 rc2? I am getting wierd
results. the userfile_name just displays the path of file on the local
machine if i am doing a single file upload and doesn't show anything for
a multiple file upload. what could be the reasons? please help me out on
this. i could make it work in php 3.0.16 earlier, but the same piece of
code strangely doesn't work in php4 rc2.

<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="upload.php3" method="post" enctyce="multipart/form-data">
    <input type="file" name="userfile[]"><br>
    <input type="file" name="userfile[]"><br>
    <input type="file" name="userfile[]"><br>
    <input type="submit" value="upload">
</form>
<?
    for ( $i = 0; $i < 3; ++$i )
    {
            echo "File Name : $userfile_name[$i] <br>";
            echo "File Size : $userfile_size[$i] <br>";
            echo "File Type : $userfile_type[$i] <br><br>";
    }
?>
</BODY>
</HTML>

-- 
Srimanth R C
Mahindra British Telecom
Mumbai

Phone : 91-22-8529000 Fax : 91-22-8528959 EMail : srimanth <email protected>

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>