close thickbox window on click

I am using thickbox for my login screen with an iFrame.  The problem is that once the login is successful I am still within the thickbox iFrame.  I need it to process the login and then close the thickbox window while refreshing the page below... here is where it is, any ideas?
Who is Participating?
inubisConnect With a Mentor Commented:

2 Options
1) In your form tag
<form method="post" id="form1" class="KT_tngformerror" action="">
put target="top"
<form method="post" id="form1" class="KT_tngformerror" target="_top" action="">

2) On the login successful page that loads in your IFrame put this bit of code:

  parent.location = 'index.php';

All Courses

From novice to tech pro — start learning today.