Re: Image / file uploader

From: Date: Thu, 06 May 2004 17:15:57 +0000
Subject: Re: Image / file uploader
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-34284@lists.php.net to get a copy of this message
Try using the following: $_SERVER[PHP_SELF] Mainly, get rid of the quotes inside the brackets. Usually this error 'T_String' generally occurs when you have quotes (" or ') where they shouldn`t be. Give it a try if that thing still troubles you... Good luck Craig Hoffman wrote: > Sorry to be a pest but I tried that. It giving me the same error. > __________________________________ > Craig Hoffman - eClimb Media > v: (847) 644 - 8914 > f: (847) 866 - 1946 > e: choffman@eclimbmedia.com > w: www.eclimbmedia.com > _________________________________ > On Apr 29, 2004, at 7:10 PM, Daniel Clark wrote: > > Change to double quotes for the HTML portion. > > > > action="$_SERVER['PHP_SELF']" > > > >> When I put single quotes in the PHP_SELF and I get this error: > >> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > >> expecting T_STRING or T_VARIABLE or T_NUM_STRING > >> > >> and I can't use double quotes because its in an echo statement. What > >> am I missing? > >> echo ("<form method='post' > >> action='$_SERVER['PHP_SELF']' > >> encType='multipart/form-data'> > >> > >> Any more thoughts? > >> CH

« previous php.db (#34284) next »