/    Sign up×
Community /Pin to ProfileBookmark

iframes getting stripped?

I’ve had this problem before but it seemed to come and go ….now it’s consistently happening. I have an iframe in my page…simple:

[CODE]
<tr>
<td colspan=”2″><iframe width=”100%” height=”75″ src=”<?=add_sid(‘looks_fun.php?id=’ . $_GET[‘id’]) ?>” frameborder=”0″></iframe></td>
</tr>
[/CODE]

when i view the page in a browser (firefox OR ie for windows xp) then the leading iframe tag is GONE but the closing iframe tag is still there:

[CODE]
<tr>
<td colspan=”2″> </iframe></td>
</tr>

[/CODE]

WHAT IS THE DEAL ??

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@HomerJSimpsonNov 15.2006 — browser doesn't understand the iframe url...

=<?=add_sid('looks_fun.php?id=' . $_GET['id']) ?>" [/QUOTE] i think i see this code before what scripts are you using?
Copy linkTweet thisAlerts:
@ray326Nov 15.2006 — That's PHP and it has to be served by a PHP-aware server. You can't read it off the file system.
Copy linkTweet thisAlerts:
@sneakyimpauthorNov 15.2006 — sorry, i should have been more explicit.

i *am* using php and the server interprets it as such. the iframe *should* look something like this:

[CODE]
<tr>
<td colspan="2"><iframe width="100%" height="75" src="looks_fun.php?id=234&SID=a5d4e4a4f" frameborder="0"></iframe></td>
</tr>
[/CODE]
×

Success!

Help @sneakyimp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...