473,412 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Passing Variables between frames

Hi All,

I am trying to pass variables between two frames in PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.

Anyone to help? Thanks

X
Dec 21 '07 #1
8 3244
On 21 Dec, 11:34, chima...@googlemail.com wrote:
Hi All,

I am trying to pass variables between two frames in PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.

Anyone to help? Thanks

X
php does not have frames
Dec 21 '07 #2
On 21 Dec, 11:34, chima...@googlemail.com wrote:
Hi All,

I am trying to pass variables between two frames in PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.

Anyone to help? Thanks

X
You can send stuff at the time you create the frame by setting GET
parameters. If you want to send data into an existing frame you'll
need to call javascript in the master window.

C.
Dec 21 '07 #3
ch******@googlemail.com wrote:
Hi All,

I am trying to pass variables between two frames in PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.

Anyone to help? Thanks
PHP don't know about frames, it treat them as two different request.

You should use session variables...

--
www.panoye.com :: virtual tour
Dec 21 '07 #4
On Dec 21, 1:34*pm, chima...@googlemail.com wrote:
Hi All,

I am trying to pass variables between two frames in PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.

Anyone to help? Thanks

X
Hi, write the values into a text or dat file and second page read them
in that file or use sql database indeed. Ok?
Dec 21 '07 #5
On 21 Dec, 17:50, Betikci Boris <pard...@gmail.comwrote:
On Dec 21, 1:34*pm, chima...@googlemail.com wrote:
Hi All,
I am trying to passvariablesbetweentwoframesin PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.
Anyone to help? Thanks
X

Hi, write the values into a text or dat file and second page read them
in that file or use sql database indeed. Ok?
Hi, how do I write the variables to a txt/dat file? And please note
that these are variables.
Dec 27 '07 #6
ch******@googlemail.com said:
On 21 Dec, 17:50, Betikci Boris <pard...@gmail.comwrote:
>On Dec 21, 1:34 pm, chima...@googlemail.com wrote:
>>Hi All,
I am trying to passvariablesbetweentwoframesin PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.
Anyone to help? Thanks
X
Hi, write the values into a text or dat file and second page read them
in that file or use sql database indeed. Ok?

Hi, how do I write the variables to a txt/dat file? And please note
that these are variables.
What does that mean? You don't want the values, just the variable names?

~A!

--
Anthony Levensalor
an*****@mypetprogrammer.com
Dec 27 '07 #7
On Dec 27, 12:51 pm, chima...@googlemail.com wrote:
On 21 Dec, 17:50, Betikci Boris <pard...@gmail.comwrote:
On Dec 21, 1:34 pm, chima...@googlemail.com wrote:
Hi All,
I am trying to passvariablesbetweentwoframesin PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.
Anyone to help? Thanks
X
Hi, write the values into a text or dat file and second page read them
in that file or use sql database indeed. Ok?

Hi, how do I write the variables to a txt/dat file? And please note
that these are variables.
i meant values of the variables of course!..

Passing values with hidden filed in a form can be easily read.

You should pass the values with plain file or database will be much
more safe.

You can also do this with session variables..
Dec 28 '07 #8
Betikci Boris wrote:
On Dec 27, 12:51 pm, chima...@googlemail.com wrote:
>On 21 Dec, 17:50, Betikci Boris <pard...@gmail.comwrote:
>>On Dec 21, 1:34 pm, chima...@googlemail.com wrote:
Hi All,
I am trying to passvariablesbetweentwoframesin PHP. I want to get
a variable from F1 to F2 and the variable that is now in F2 should
pass back the variable to F1 and call another page.
Anyone to help? Thanks
X
Hi, write the values into a text or dat file and second page read them
in that file or use sql database indeed. Ok?
Hi, how do I write the variables to a txt/dat file? And please note
that these are variables.

i meant values of the variables of course!..

Passing values with hidden filed in a form can be easily read.

You should pass the values with plain file or database will be much
more safe.

You can also do this with session variables..
Writing the values to a file is just extra overhead and can cause lots
of problems - like not cleaning up old files. Similar problems can
occur with a database. Then you must pass a file name in a cookie,
session or hidden variable. I would NEVER recommend such actions -
that's what sessions are for.

If the information is private, use sessions - that's what they're there
for. But if it's something which has been entered on a previous form,
hidden fields should not be a problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 28 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Hans | last post by:
Hi There, I have a page that has links with some variables and I need to open the results set in a frameset. I have tried doing this in various different ways, but still cannot get the variable...
1
by: Dave Smithz | last post by:
Hi there, I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the...
1
by: divya | last post by:
This is the problem I am having: I have an index page where I obtain input from the user (for example their date of birth). This information is passed to Page2. Page2 has frames. Outside of the...
4
by: A Web Master | last post by:
I am designing a site for a client where I have a frameset and 3 frames (all in ASP). I am creating session variables in the frameset that need to be accessed in the frames. It seams that in...
4
by: A Web Master | last post by:
I want to know the best way of passing on variable contents on a site coded in ASP using frameset/frame. Content is used in all frames for stuffs like screen_resolution, language, ... My...
7
by: Scott | last post by:
I need help to modify the code below to pass url variables from a framset. The click to run this will be in the mainFrame. This script works well in a non-frame page. Grabs the current url...
1
by: Russell | last post by:
Hi there, I'm currently creating a .NET Web Application and I have a question about passing values from one screen to another. I previously used Session variables in the code to store these...
1
by: paleHail | last post by:
Hi all, I have my index.html where I have two frames: <frameset rows="144,*" border="0" frameborder="no"> <frame src="header.html" frameborder="no" noresize scrolling="no"> <frame...
25
by: Geoff Cox | last post by:
Hello, The following <frame src="topbar-frameset.php?newVar=<?php echo $groups; ?>"> passes the value of the variable $groups from a php file to the top page in a frameset but how do I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.