Re: Image / file uploader
| From: | Arthur Pelkey | Date: | Fri, 30 Apr 2004 17:37:56 +0000 |
| Subject: | Re: Image / file uploader | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34215@lists.php.net to get a copy of this message | ||
does it puke when its not using _self?
Craig Hoffman wrote:
This is really becoming an irritating small bug. I tried the curly brackets and the photo name still does not show up when I echo out the query. Everything else about the script works fine. Why does PHP choke on forms that submit files to themselves? I am slowly running out things to try... Suggestions? Thanks for everyone's help. CH __________________________________ Craig Hoffman - eClimb Media v: (847) 644 - 8914 f: (847) 866 - 1946 e: choffman@eclimbmedia.com w: www.eclimbmedia.com _________________________________ On Apr 30, 2004, at 5:05 AM, Ford, Mike [LSS] wrote:On 30 April 2004 01:10, Craig Hoffman wrote: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?Curly braces: echo ("<form method='post' action='{$_SERVER['PHP_SELF']}' encType='multipart/form-data'> Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.ukTel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211