Re: Image problem with $_FILES and $_POST
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 15:38:58 -0500
Karl wrote:
On 29 Des, 19:51, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:OK, did you write this yourself? Or is this someone else's script?
No it's mine :)
If the latter, that's who you should be asking.Yes, I know.
And <input type="file"...> and <input type="hidden"...> have two
entirely different uses.
And sure - if you comment out the $_FILES line, there is no way for the
file field will work.
Yes, of course. I do it just to try what would happen.
Anyway. If I select to post the image.jpg by the file field on the
"edit" page. It work.
I had hoped to find a way to "transfer" it through this different view
of forms without post it a second time.
Karl
OK, this is a little more clear now.
The only way you can get data from one page to another is either via a form field or the $_SESSION variable.
In a case like this, I'd just use the hidden field to pass the old name. If the user uploads a new file, use it. Otherwise just use the old file (the one passed in the hidden field).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Image problem with $_FILES and $_POST
- From: Karl
- Re: Image problem with $_FILES and $_POST
- From: Jerry Stuckle
- Re: Image problem with $_FILES and $_POST
- From: Karl
- Re: Image problem with $_FILES and $_POST
- From: Jerry Stuckle
- Re: Image problem with $_FILES and $_POST
- From: Karl
- Image problem with $_FILES and $_POST
- Prev by Date: Re: Secure Login PHP
- Next by Date: Re: creating a cumulative total column, but not in sequence
- Previous by thread: Re: Image problem with $_FILES and $_POST
- Next by thread: Server Push - Cross-Platform?
- Index(es):
Relevant Pages
|