Re: Help!
| From: | Zak Greant | Date: | Mon, 26 Jun 2000 21:42:06 +0000 |
| Subject: | Re: Help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3214@lists.php.net to get a copy of this message | ||
At 02:17 PM 6/26/00 +0100, John Steele wrote:
Ouch, I need this one fast (a live system). This works fine in PHP4:
echo "Upload Name: ${"infile".$i."_name"}<br>";
echo "Upload Size: ${"infile".$i."_size"}<br>";
echo "Upload Type: ${"infile".$i."_type"}<br>";
In PHP3, the parser thinks that you want to end you string as soon as it encounters the second quote in the line.
Change your code to this:
echo "Upload Name: ".${"infile".$i."_name"}."<br>";
On PHP3.0.7 I get a parse error:
Parse error: parse error, expecting STRING' or '$''
This is for a multiple file upload (variable number of files). How do I handle this in PHP3?
HTH,
Zak Greant
Creative Director
Nucleus Information Service Inc.
"A camel is a horse designed by a committee."
- Alex Issigonis (Designer of the Mini)