title: Can I Pass value from form to popup window, display something based on what was passed, then pass something back?
body: <p>I need to do this using PHP and Javascript.</p>
  
  <p>I have one form, with a few inputs. One of them is gender.</p>
  
  <p>When they click a link/button I need to pass the value of the gender drop down to a popup.</p>
  
  <p>Based on that value I show either male or females portraits.</p>
  
  <p>I'd like to pass the value back to the parent window once they select a portrait and then click a button.</p>
  
  <p>I have the code to display the portaits. But how do I pass the values back and forth, and how do I make a value passed from the parent window available to my PHP code in the new popup?</p>
  
  <p>Any help greatly appreciated.</p>