/    Sign up×
Community /Pin to ProfileBookmark

iframe object or form?

I currently have a PHP file that includes three echo statements, so when called from a single iframe within HTML loads three perfectly formatted lines of text.

I’ve since shortened/optimized this PHP with extra variables and one echo statement so that it can be used by multiple pages. The problem is that for one of these pages I still want three lines of text (ie. load the same file multiple times), however I don’t know how to make this three lines one on top of the other without using multiple iframes or objects. Is there a simple method out there? Sorry if this has been covered already.

Here’s how I’ve been tackling it so far. It’s just not pretty due to the extra spacing between text and if I change the height any lower it starts to crop part of the text.

[code]<iframe src=”/test.php?var1=1&var2=100″ width=”100%” height=”30″ frameborder=”0″ scrolling=”no”></iframe>
<iframe src=”/test.php?var1=2&var2=101″ width=”100%” height=”30″ frameborder=”0″ scrolling=”no”></iframe>
<iframe src=”/test.php?var1=3&var2=102″ width=”100%” height=”30″ frameborder=”0″ scrolling=”no”></iframe>[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @skyblaster 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 6.13,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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