What's wrong with my php file?
------------------------------------------------
<?
if (acao == 1) {
        if (!copy($MyFile,"c:\\temp\\$MyFile_name")) {
             echo "can't copy";
             exit;
         }
}
?>

<html>
<head>
<title></title>
</head>

<body bgcolor=#FFFFFF text=#000000 link=#000000 alink=#000000 vlink=#000000 
marginwidth=10 marginheight=10 topmargin=10 leftmargin=10>

<form action=teste.php method=post name=teste ENCTYPE="multipart/form-data">
<input type=hidden name=acao value=1>
<table width=0 cellpadding=0 cellspacing=0 border=0>
     <tr bgcolor=#DDDDDD>
       <td width=20%><font face=verdana size=2><b>File</b></font></td>
       <td><input type=file name=MyFile size=40></td>
     </tr>
</table>
<input type=submit name=submit value=test>
</form>

</body>
</html>
---------------------------------------------------------------------------
---

[ r a f a e l   f a r i a] _____________________
[EMAIL PROTECTED]
WebMaster Universo Online - http://www.uol.com.br
Phone # +55 11 3038-8665


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to