Re: What's wrong?

From: Date: Tue, 01 May 2001 22:21:47 +0000
Subject: Re: What's wrong?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-51038@lists.php.net to get a copy of this message
Don't you need a $ before acao on the line: if (acao == 1) { ? - Kath ----- Original Message ----- From: "Rafael Faria" <rafaelrfc@bol.com.br> To: <php-general@lists.php.net> Sent: Tuesday, May 01, 2001 6:08 PM Subject: [PHP] What's wrong? > > > 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] _____________________ > _________________rafaelrfc@uol.com.br > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#51038) next »