By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,543 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

Passing Variables between frames

P: n/a
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
Share this Question
Share on Google+
8 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.