I have a form with two inputs (code and name) and a button.
I need to pass the code.value to php for receive the name
assigned to this code, and fill the name input.
How I can do it?
I can write a php call inside a javascript function?
THe only way to do this without the entire page refreshing is to have a js function that opens a new window and calls the php code (and passes the code value). this new window will return the result to the main window and close. then use js to fill in the name input.
i want to know about passing values from the new window to the main window.
can u give more (detailed) explanation? if u also give the js function examples, that would be great.