Menu
Hi all
In one of my forms i have a html file object <input type=”file ……>. This ofcourse gives a text box and a browse button to locate the file from the local drive. I would like to insert this whole path that is dislayed in the textbox after the browse action is performed into a field in MySQL. But by default only the filename gets inserted into the database. How can the whole path be preserved?
Eg
I want to insert something like “C:DocumentMyFoldersubFolderimage.jpg” into a field in mySQL
But what is getting inserted is just “image.jpg”
How can I achieve this in php?