Jump to content

Validate image in input type file...


melprok

Recommended Posts

The issue is that I have a input type = file button.

If the I want to add a record to the table with the path of the selected image, I have no problem.

 

The problem is when I want to update that record. I see the image very well in the page when I search for that record. But when I press submit to update the record I have no data in the input type file, because I don't select any image. The image is already display in the page.

 

In the input type file says "No file choosen".

 

I pass the image selected in the input type file, to php to update. But in this cases the input type file is not set.

 

I can assign a value to the input type file?

 

This is my test page. http://mkws.melprokwebsolutions.com/php/htmlformentry.php

 

If you search product #2, you will see an image. But when I press submit, I have no file to pass to the php page.

 

 

Thanks...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...