0

hi guys.....can anyone check my coding....what's wrong with my coding? the iframe that i'm trying to make, doesn't works well......when i click on the link, it goes to next page.....what i want is, when i clicked on the link, the info will come out in the same page....here's my coding....

<?php 

	echo "<br><br>";
	echo "<a href = activity_list.php?id=", $row['id'] , "><b>Activity List</b></a>";
	echo "<br />";
	echo "<iframe frameborder='0' width='100%'  src='activity_list.php?id=", $row['id']," >";
	echo "</iframe>";
?>
4
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Demiloy
0

if it's a link do this
try doing it through a
echo'<a target='iframe_name' href=activity_list.php?id=", $row," >";
i am no sure about all the apostrofes

0

Just as an added suggestion, if you have mostly HTML and not a lot of PHP, you can just post the HTML regularly, and then add the php in. For example:

<br />
<a href="activity_list.php?id=<?php echo $row['id']; ?>"><b>Activity List</b></a>
<br /> 
<iframe frameborder="0" width="100%"  src="activity_list.php?id=<?php echo $row['id']; ?>" >
</iframe>

Also, you're missing quotes around you href="activity_list.php". I would suggest you do at least that.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.