I am working on a website and completely stuck on a paginator/editor... works perfect outside my framework... anyways... I decided to use Iframes

I need to pass a var from main page to an iframe region on same page.

When user is logged into wordpress:
global $current_user;
get_currentuserinfo();

I need to pass the variable of current_user to my iframe on a SQL query. It works outside the iframe but not within it.

So my iframe includes a php file and a sort function that states "INSERT INTO activitythree VALUES(NULL,'". $current_user->user_login . "','$date','$activity')"

I need current user to be pulled from main page that includes the iframe.

Any help would be appreciated.

I can't get $val to pass.
<?
$val=$_GET['username'];
echo "<iframe src='http://www.fwactive.com/editor/index.php?user=$val' height='700' width='650'>You need a Frames Capable browser to view this content.</iframe>";
?>

Once it passes then I need to call the SQL query to pull in the varibale passed. Last 2 steps and complete.

$sql = "select * from activitythree";

The $sql will have a where condition to use the $val passed to the iframe.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.