CodeIgniter Forums

Full Version: Updating record with one image...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Felipe Deitos[/eluser]
Hi, i am making a news system, i am already inserting the news this are the fields in db(id, date, title, content, image)
I am using the jquery validate to validate the form...
So when i am inserting if i have not selected a image the validate will tell me "Please insert image".
Until here everything is working fine.

But when i update this record all fields come with the record value...
The input title comes with the value "nice title"
How can i put the value in the file field?
Cuz if i dont put any value the jquery validade will tell "Please insert image", even if the image is in record...

This is confuse but i hope someone can help me...

Thanks!