Hi,

I've been trying to figure out a solution to this for ages, but getting no where. I'd like to have a form on the page which when submitted opens a lightbox and echos that form data. I've tried the below, but it doesn't seem to work. Does anyone know a solution to this? Doesn't have to be the facebox lightbox, can be any lightbox script.

Thanks!


http://www.searchlabtest.com/facebox/examples/index.php

Code:
  <script type="text/javascript">
    jQuery(document).ready(function($) {
	$("#submitMe").click( function(event) {
    $.facebox("<iframe src='var.php'></iframe>" );
  
}); 
    })
  </script>

......

 <form action="var.php" method="POST">
    <select name="q"> 
	<option value="Worked_1!"/>Worked_1</option>
	<option value="Worked_2!"/>Worked_2</option>
	<option value="Worked_3!"/>Worked_3</option>
	</select><br /><br />
	<input type="button" value="Send form data to lightbox" id="submitMe" /> 
</form>
var.php is simply...
Code:
<html>
<body>
<?php echo $_POST[q]; ?>
</body>
</html>