Dear brother, I have two pages, one is 1. PHP, there is also a login registration page, login.php. The 1.php content is:
I want to achieve: 1, in 1. PHP Click Login, it pops up in the middle of the screen login.php; do not click Login, do not pop up.
2, after login.php login or register login, automatically close this frame, still go back to pop login.php before 1.php, and refresh 1.php.
I studied for a few days, still no avail, please help! Thank you!
Reply to discussion (solution)
No one, my points are gone, this is the last knot to return ...
You can only close a page that you have opened.
I'll try it back.
Login. Output after PHP operation is complete
Yes, I added this sentence in the login.php. But 1.php didn't refresh, just the login.php page inside the frame was closed. Thank you so late also reply.
Is anyone there? How do you do that?
Post your code and tell the browser you're using
OK, I'll go back to the code on the login page. I'm in trouble.
I can't seem to edit the original post, my login.php is as follows: I use 360 browser. Thank you!
Session_Start ();
Include ("incdb.php");
Submit Login Information
if (!empty ($_post[' submit1 ')) {
$uid =addslashes ($_post[' uid ');
if ($uid) {
if (Strpos ($uid, "'")!==false) echo ' confirmation code is illegal ';
else {
$sql = "Select ID from the users WHERE id= ' $uid '";
$query = mysql_query ($sql);
$rows =mysql_fetch_array ($query);
Mysql_free_result ($query);
if ($rows [' id ']== $uid) {echo '