Hello!, I Have a problem when mixing php and js, if somebody could help me would thank them to him. The problem is the following one:
I have a form in which the submit button is onClick in js that invokes a function there same and opens a window, this window obtains a file of the hard disk and to the moment to press the submit button he/she should keep in the database the name of the file, to copy it to the servant and to return the name of the file with the new route. This makes it in a second window, to be able to execute the code PHP. The first window should recover that name and to close the window. The form recive the name and he/she adds it to a textbox.
The problem is that its doesn't recover in the form the name of the file, its doesn't close me the first window and of course its doesn't return me the name. The second window if its adds to the database and its sends the name, but its doesn't close me and I believe its doesn't send me the name.
I thank their help ahead of time.
P.S. If my English is bad, excuse.