DMXzone Lightbox Support Product Page
Login form to stay in Lightbox until successful submission
Asked 11 Jul 2013 09:12:07
1
has this question
11 Jul 2013 09:12:07 David Woolley posted:
I have a login form that opens in a DMXzone Lightbox, and after submission redirects to a secure landing page. I followed the FAQ "Close Lightbox when form is submitted" and put a target = "_top" in the form tag.This works fine except when an incorrect username or password is entered. The login form with a server validation message I setup does not reload in the Lightbox, but in a normal page.
How does one get it to stay in the Lightbox until the form is successfully submitted?
I tried using this code snippet from the FAQ, but not sure where to put it:
-----------------------------------------------------------------------------------
if (count($_POST) > 0) {
echo "<script> top.location = top.location; </script>";
exit;
}
-----------------------------------------------------------------------------------
Cheers
Dave
Replies
Replied 22 Jul 2013 10:23:37
22 Jul 2013 10:23:37 David Woolley replied:
Any suggestions folks?