Jump to content

Passing Variable to a Frameset


nikhilthecool

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.
Link to comment
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.
Link to comment
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...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.