hello,
i have a page called hallfame.html it consists of two frames.
in the left one, pictures are loaded of the hall of fame members. in the right one the hall of fame general page is loaded.
what i want to to is when people click on one of the pictures in the left frame, their detail come up in the right frame..
every hall of fame member has a unique person_ID. this is used to load the right info for the user in the detail page.
sp far so good.. the problem i have is when i click on a picture, the left frame gets refreshed instead of the right one.
following code is used to make display the images in the left frame and make them clickable
$i=0;
$str='';
if (mysql_num_rows($numberresult)>0)
{
while ($row = mysql_fetch_array($numberresult, MYSQL_ASSOC))
{
$i++;
//$str .= $i.". ";
$str .= "<a href=\"welcome.php?act=view&iid=".$i."\">";
$str .= "<img border=\"0\" height=\"127\" width=\"100\" src=\"image1.php?act=view&iid=".$i."\"></a> ";
}
print $str;
}
now i know i have to set a target= mainframe somewhere. i tried adding it in the code above, making it look like this
$i=0;
$str='';
if (mysql_num_rows($numberresult)>0)
{
while ($row = mysql_fetch_array($numberresult, MYSQL_ASSOC))
{
$i++;
//$str .= $i.". ";
$str .= "<a href=\"welcome.php?act=view&iid=".$i."\"target="mainFrame">";
$str .= "<img border=\"0\" height=\"127\" width=\"100\" src=\"image1.php?act=view&iid=".$i."\"></a> ";
}
print $str;
}
this does however not work.. any ideas anyone?