nikhilthecool Posted April 24, 2006 Share Posted April 24, 2006 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.phpAs 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. Link to comment https://forums.phpfreaks.com/topic/8235-passing-variable-to-a-frameset/ Share on other sites More sharing options...
wildteen88 Posted April 24, 2006 Share Posted April 24, 2006 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. Link to comment https://forums.phpfreaks.com/topic/8235-passing-variable-to-a-frameset/#findComment-30014 Share on other sites More sharing options...
nikhilthecool Posted April 24, 2006 Author Share Posted April 24, 2006 No. I want to open second.php only on click.Also i want to access the variable in second1.phpIts 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... Link to comment https://forums.phpfreaks.com/topic/8235-passing-variable-to-a-frameset/#findComment-30023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.