Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Strange behavior passing file from form...
- Jeff Homan
October 25, 2004, 8:24 am
rate this thread
I don't know where to begin with this as it's kind of a strange error
and I can't figure it out. I've got a form that I pass several
variables to a php page. One of the variables is a file that is
The INPUT is type "file" and the form enctype is set to
But what happens, is when it gets to the php page that these vars are
sent too, is the file only shows as a forward slash "/" - This is
really bugging me because all of the other variables get passed with
no problems, so I'm at a loss.
Does anyone have any ideas with the problem that I'm having? I'm using
php 4.2.2 on Apache 2.0.40 and I'm not sure what other info would help
Thank you in advance for any ideas,
Re: Strange behavior passing file from form...
Here is the form input statement:
<input type="file" name="product_thumb_image" size="32"
Then the next page it goes to, the first thing I call is this:
$d["error"] = "Filename: " . $d["product_thumb_image_name"];
This then outputs "Filename: /"
But if I put:
$d["error"] = "Test price: " . $d["price"];
it outputs: "Test price: 32.99"
So what I don't understand is why I'm only getting a forward slash "/"
as the filename. That seems really odd.
Does this help at all, or do you need more info?