I found this tutorial on using lightbox but I am having a problem with it. My php form is getting loaded correctly but when I hit submit it open a new browser window isntead of loading it into the DIV.
Here is the link to the lightbox files
http://particletree.com/features/lightbox-gone-wild/
Here is my form
<form id="form" action="submitrequest.php" >
<div id="head"> Request a testimonial</div>
<div>
<span class="divs">Subject</span>
</div>
<div>
<input name=txtsubject type=text value="Hello Tom" size="50">
</div>
<div>
<span class="divs">Full Name</span>
</div>
<div>
<table width="200" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><label>
<input name="Gender" type="radio" value="mr" id="Gender_0" checked="checked" />
Mr</label></td>
<td><label>
<input type="radio" name="Gender" value="mrs" id="Gender_1" />
Mrs</label></td>
<td><label>
<input type="radio" name="Gender" value="miss" id="Gender_2" />
Miss</label></td>
</tr>
</table>
</div>
<div>
<input name=fullname type=text value="Tom Alvarez" size="45">
</div>
<div>
<span class="divs">Email</span>
</div>
<div>
<input name=email type=text value="tomealvarez@yahoo.com" size="50">
</div>
<div>
<span class="divs">Message</span>
</div>
<div>
<textarea name=message colms="50" rows="10">This is a test</textarea>
</div>
<div align="right">
<button type="button" value="submit" name="submit" onclick="insert" class="lbAction">Submit</button>
<a href="#" class="lbAction" id="form" rel="insert">Submit</a>
<a href="#" class="lbAction" rel="deactivate"> Cancel </a>
</div>
</form>
The php is submitting the form but it only does it if I do it outside of the AJAX window. Can anyone help with this? Thanks