How to open and close a specified page through an IFRAME

Source: Internet
Author: User
Dear brother, I have two pages, one is 1. PHP, there is also a login registration page, login.php. The 1.php content is:




Login





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.

 
  
  
Login

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 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.