dsyn
asked on
main frame variables passed to content frame
ok, I have a strange one but I'de like to know if its possible. I have a frameset composed of two frames, a left and a right. left being navigation and right being content. When I pass variables to the main frameset, how do I send the variables to the left frame without using one php file to build the frame?
url to frameset:
frameset.php?something=thi s
-------------------------- ---------- --------
frameset.php:
<frameset cols="170,100%*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="NO" noresize src="left.php">
<frame name="mainFrame" src="content.php" scrolling="AUTO">
</frameset>
-------------------------- ---------- -------
left.php:
????
url to frameset:
frameset.php?something=thi
--------------------------
frameset.php:
<frameset cols="170,100%*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="NO" noresize src="left.php">
<frame name="mainFrame" src="content.php" scrolling="AUTO">
</frameset>
--------------------------
left.php:
????
ASKER
I'm linking to the main frame page like this:
<a href="frameset.php?somethi ng=this">l ink</a>
so the left frame needs to be able to parse it, but the frameset itself (in the code) doesn't have any variables in it.
does that help? maybe?
<a href="frameset.php?somethi
so the left frame needs to be able to parse it, but the frameset itself (in the code) doesn't have any variables in it.
does that help? maybe?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what is this? $_GET["something"];
does that get variables directly from the address bar?
does that get variables directly from the address bar?
yes, you can get the parameters passed in adress bar with $_GET
e.g
blahblah.com?something=som e_text
echo $_GET["something"];
WASIF
e.g
blahblah.com?something=som
echo $_GET["something"];
WASIF
ASKER
whoa, that's cool!
I'm gonna try that first thing tomorrow.. I'l let ya' know.. I'm still just starting out with php, so thanks for bearing with me.
I'm gonna try that first thing tomorrow.. I'l let ya' know.. I'm still just starting out with php, so thanks for bearing with me.
loz