Jump to content

Archived

This topic is now archived and is closed to further replies.

nikhilthecool

Passing Variable to a Frameset

Recommended Posts

Hi,

I pass a variable "name" from first.php as follows:

<a href="second.php?name=<?=$row["username"]?>"Click Here</a>


Now i get the value using $_REQUEST["name"]

However, i need the value in second1.php which is a frame in second.php

second.php (frameset)
__|__
| |
second1.php second2.php


As a result, i cant get the value using $_REQUEST.

What do i need to do to access the variable $_REQUEST['name'] in second1.php??????

Please help.

Thanks.

Share this post


Link to post
Share on other sites
You will want to give secound1.php frame a name. Then with your link use the [b]target[/b] atrribute like so: [b]target="secound1FrameNameHere"[/b] When you click the link the browser will goto the secound1.php frame rather than the whole page.

Share this post


Link to post
Share on other sites
No. I want to open second.php only on click.

Also i want to access the variable in second1.php

Its like, on first.php i click on the link "Click Here"

After clicking, i need to open second.php and pass variable "name" to both second1.php and second2.php so that i can be able to use them there.

Please help...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.