Jump to content

new window PHP + Javascript?


supermerc

Recommended Posts

Hey, I have a script where when you click on a link it opens from 20-30 iframes in the page to a x,y coordinate where is located a recaptcha so its basicly 20-30 recaptcha's beside each other.

 

The only problem is that it can take a while to load 20-30 pages and you cant really start entering them till they are all loaded so you lose a lot of time.

 

What I thought of doing is make them open in popup and make there only like 5 per page.

 

My code right now is:

 

<?php
include 'config.php';
$order = $_GET['order'];
$raid = $_GET['raid'];
$all_members = mysql_query("SELECT * FROM accounts where rank = '$order' ORDER BY level DESC") or die(mysql_error());

       

      if(mysql_num_rows($all_members) > 0)

      { 

      while($row = mysql_fetch_assoc($all_members))

      {
	  
	$q = mysql_query("SELECT * FROM accounts") or die(mysql_error());

	if(mysql_num_rows($q) > 0)
	{
echo "<iframe src=\"scroll.php?id=$row[owid]&raid=$raid\" width=\"325\" height=\"200\" scrolling=\"no\"></iframe>";
}
	}

      }
echo '</table>';
      

?>

 

So it loops all the accounts in database to load in iframe, but what i want is to load first 5 in popup, then 5 other in another popup etc.

 

Can anyone help?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.