RE: [PHP] Cannot use [] for reading...

From: Date: Tue, 27 Jun 2000 14:17:29 +0000
Subject: RE: [PHP] Cannot use [] for reading...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3340@lists.php.net to get a copy of this message
> -----Original Message----- > From: Philip Diller [mailto:philip@pristine.com.tw] > Sent: Tuesday, June 27, 2000 9:01 AM > To: php-general@lists.php.net > Subject: [PHP] Cannot use [] for reading... > > > Hopefully someone's run into this and figured it out... > > HTML that worked perfectly fine in PHP 3.0.13: > > <form action="/scripts/process.php" method=post > enctype="multipart/form-data"> > ... (lots snipped) > <input name="file[]" type="file" size="35" value="<? > echo $file[]?>"><br> > <- (line 43) What is it you're actually trying to get out with the echo statement there? $file[], in general, is used as shorthand for assigning a value to the end of an array. I'm not sure that there's any particular way to get it to make sense in the context of output. --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell

« previous php.general (#3340) next »