Hello,
I have a bit of a dummy question.
I have a main window which when opened, a login pop-up window is immediately displayed. The login page asks a user for username and password in a form. When the user clicks submit, it sends the form details to a php page called loginquery.php which checks the details in a mysql database and if ok, forwards on to the logged in page.
My problem is that when submit is clicked, the php
(header("Location: ./main.php")
is forwarding on to the next page in the pop-up window where I actually wanted it to close the pop-up and forward onto the next page in the main window.
Can anyone suggest a way of doing this? A rough snippet of code would be ideal.
Thanks a lot,
Andy
I have a bit of a dummy question.
I have a main window which when opened, a login pop-up window is immediately displayed. The login page asks a user for username and password in a form. When the user clicks submit, it sends the form details to a php page called loginquery.php which checks the details in a mysql database and if ok, forwards on to the logged in page.
My problem is that when submit is clicked, the php
(header("Location: ./main.php")
is forwarding on to the next page in the pop-up window where I actually wanted it to close the pop-up and forward onto the next page in the main window.
Can anyone suggest a way of doing this? A rough snippet of code would be ideal.
Thanks a lot,
Andy