Re: Image problem with $_FILES and $_POST



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.

And <input type="file"...> and <input type="hidden"...> have two
entirely different uses.

Yes, I know.

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
.



Relevant Pages

  • Re: Image problem with $_FILES and $_POST
    ... I have a form for posting news articles. ... Form one is the "register" form. ... If I select edit, I got the "edit form" and if I select accept, I ... BUT if I use the file field and browse, select an image and post it. ...
    (comp.lang.php)
  • Re: Image problem with $_FILES and $_POST
    ... I have a form for posting news articles. ... Form one is the "register" form. ... If I select edit, I got the "edit form" and if I select accept, I ... BUT if I use the file field and browse, select an image and post it. ...
    (comp.lang.php)
  • Image problem with $_FILES and $_POST
    ... I have a form for posting news articles. ... Form one is the "register" form. ... If I select edit, I got the "edit form" and if I select accept, I ... BUT if I use the file field and browse, select an image and post it. ...
    (comp.lang.php)
  • Re: Image problem with $_FILES and $_POST
    ... Karl wrote: ... If I select to post the image.jpg by the file field on the ... "edit" page. ... I'd just use the hidden field to pass the old name. ...
    (comp.lang.php)