Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried to load my page using <iframe> function in php like this :
print '<iframe src="../url/file.php" width="1074" height="500" frameborder="0"></iframe>';


It works, I dunno why there is a number under my <iframe>...It bugs me and I tried to get rid of it but I can't..

Can anyone help me out??

this is a picture of my result :

http://s23.postimg.org/taaoviagr/iframe.jpg[^]

Update result :

1. with_iframe-border(1px solid red
http://s15.postimg.org/c5gzlew23/with_iframe_border_1px_solid_red.jpg[^]

2. without iframe
http://s8.postimg.org/n0k5wc2mt/without_iframe.jpg[^]
Posted
Updated 26-May-13 2:17am
v5
Comments
Manfred Rudolf Bihy 25-May-13 14:00pm    
Nice try! Reported as SPAM.
[no name] 26-May-13 5:03am    
Look like there is someone who think my Question is a joke..so I reupload the image,,
Anyway can anyone help me to solve my problem above??And 1 more question..how to change element position that show in <iframe>?
Zoltán Zörgő 26-May-13 6:05am    
Put a style="border: 1px solid red;" on your iframe and renew the picture!
I want to see if the number is coming from the file.php or from your outer code.
[no name] 26-May-13 8:14am    
I think that number is not from the file.php..but i'm not so sure so I upload the picture from the exact code with and without iframe in the update result above.. please help me
Anoop Kr Sharma 26-May-13 8:27am    
hey acc to me this 1 is out of frame means you havn't done any mistake in file .php but you have entered 1 in the file in which you have used frame

1 solution

I found the problem...
It's my double call for print function...

at first I write the code like this :
XML
$content = print '<iframe src="../pengguna/daftar_pengguna.php" overflow="hidden" width="1074" height="500"></iframe>';


then I call the $content.

It solved when I write the code like this :

XML
$content = '<iframe src="../pengguna/daftar_pengguna.php" overflow="hidden" width="1074" height="500"></iframe>';



[edit]Code block fixed[/edit]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900