/    Sign up×
Community /Pin to ProfileBookmark

Sending parameters to topframe…

Trying to pass a variable within a link to a page containing frames.

The main page (index.php) contains:

[CODE]
<frameset rows=”25,*” frameborder=”NO” border=”0″ framespacing=”0″>
<frame src=”../rlogs/submenu.php?submenu=” name=”submenu” scrolling=”NO” noresize >
<frame src=”../rlogs/logs.php” name=”content” scrolling=”auto” noresize >
</frameset>
<noframes><body
[/CODE]

The link sits inside the /rlogs/logs.php page in the content frame (see above). It looks like this:

[CODE]
echo “<a class=dark href=http://www.ndorfnz.com/rlogs/index.php?user=$row2[username]&pagename=thelog&submenu=all>view</a>”;
[/CODE]

How do I pass the value from “submenu=all” to the /rlogs/submenu.php?submenu in the top frame within that URL?

I’ve tried some different target=_ code but to no avail.

Basically I am creating a dynamic submenu of sort…

Thanks in advance

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsDec 17.2005 — should be[code=php]<?php
echo "<a class="dark" href="http://www.ndorfnz.com/rlogs/index.php?user={$row2['username']}&amp;pagename=thelog&amp;submenu=all">view</a>";
?>[/code]
try this&lt;a href="..." onclick="parent.FRAMENAME.location=this.href; return false;" target="FRAMENAME"&gt;link&lt;/a&gt;if you need to do that from php or whatever, just output a JavaScript block similar to the above
×

Success!

Help @ndorfnz 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.21,
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,
)...