Sending GET variables in window.open()
Posted on 2006-05-28
I need to send the GET variable to a pop-up window. Grateful for your help in coding this simple thing :-)
I am building a site for a choir. I have a list of members names and clicking on the name of a member should open a popup that gives some details about that member, which will be drawn from a database. I have no problem with the database side of things, but the popup page does need to receive a variable in order to retrieve the right details. It's getting the variable part to the popup's URL that is giving me problems.
I suspect I will need to write a simple function with all the window parameters etc. and then call that function from the hyperlinks. It's pointless repeating all that stuff for each of 80 members.
The page URL to open will look something like:
and so on, according to which member's details are to be retireved.
How do I code the hyperlinks and function so that the member's name gets passed as a variable to the target page?