Forum Moderators: open
I have a tableABC in MYSQL with few fields(name, count 1 ,count 2 ,count 3 and they are being displayed on a webpage via PHP.
Now when any row is clicked then a pop up opens and then he can select the problem from drop down, and a solution from drop down and enter comments in a text field.
Now the Name(ABCtable) with the selected problem and solution ans entered text should go in a sepereate table say XYZ in the MYSQL.
I can do it in any language. PHP alone or PHP+javascript or JSP or AJAX.
But I have no idea what to do and trying to search something like this in google gets me nothing.
Can you please help me? If someone has done a project like that before then can you share few ideas, links or references or anything that might get me a start? (I am learning PHP and Java script a little from web, so dont know much)
Thanks in advance
If you mean how do you get the data from the pop up window to the main window, look at window.opener. Window.opener is the window that opened the pop up and is used to refer to if from the pop up. So if you have a comments field in BOTH the pop up and your main window,
window.opener.comments.value=comments.value;
would bring the text from the pop-up to the main window.
To post data from the pop up window to the database, you would just do a post to a script that does so directly from that pop up. Not sure what you'd want it in a new table though.
Ok, my task here is that.I have
A B C
--------------------------
a b c
w x y
m n o
This is a table displayed on my screen which comes from database
Now if i click on "a" or "b" or "c" or "m".......
then a pop up comes up.
That pop up has 2 drop down , a text area to be filled and a submit button.
When you fill and click submit. then the window closes and the data gets submited to the database table.
[edited by: Fotiman at 7:42 pm (utc) on July 16, 2008]