Re: UPLOADING IMAGE

From: Date: Sat, 25 May 2002 21:44:38 +0000
Subject: Re: UPLOADING IMAGE
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-99270@lists.php.net to get a copy of this message
HOW IS IT NOT WORKING? Are you getting an error? Is your hard drive being erased? Do you get little electrical shocks from the wires tied into your braces when you hit enter and upload a file over 10k that has blue and yellow within it but not part of the border???? Info, man...provide it. ---John Holmes... ----- Original Message ----- From: "Dani" <universal2001@iprimus.com.au> To: "1LT John W. Holmes" <holmes072000@charter.net> Cc: <php-general@lists.php.net> Sent: Saturday, May 25, 2002 8:24 PM Subject: Re: [PHP] UPLOADING IMAGE > I have tried to use the filename but it's still not working. > > here is the whole code I've got: > > ****** First file called 'upload.php' > <html> > <head> > <title>Untitled Document</title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"> > </head> > > <body bgcolor="#FFFFFF" text="#000000"> > <form name="form1" method="post" ENCTYPE="multipart/form-data" > action="uploadfile.php"> > <table width="50%" border="0" cellspacing="0" > cellpadding="1"> > <tr> > <td width="21%">File</td> > <td width="79%"> > <input type="FILE" name="file"> > </td> > </tr> > <tr> > <td width="21%"> > <input type="submit" name="Submit" value="Submit"> > </td> > <td width="79%">&nbsp;</td> > </tr> > </table> > </form> > </body> > </html> > > ******second file called 'uploadfile.php' > <?php > if($file) > { > echo "file name :",$file_name,"<P>\n"; > copy($file,"D:/graphic_practise/$file_name"); > > print("file uploaded"); > } > ?> > > thanks >

« previous php.general (#99270) next »