[PHP] php, frames

2002-11-16 Thread Adrian Partenie
Hello,
I could use some help. 


I have two framed pages, upperframe.html and lowerframe.html.  In upper frame.html:

echo table border=1; 
echo trtd/tdtdID/tdtdSubject/tdtdOpen/tdtdClose/td/tr; 
while($row = MySQL_fetch_array($result)) { 
echo trtdforminput type=\checkbox\ method=\post\ 
name=\linia\/form/td; 
echo tda href=\\ target=\_parent\{$row['id']}/a/td; ??
echo td{$row['subject']}/td; 
echo td{$row['open']}/td;
echo td{$row['close']}/td/tr; 
} 
echo /table;

I display the content of the main table, which has an autoincrement index. For every 
index I have another table, something like  tableID. What I want is to press on  the 
id from a row in upperframe table and to display in lowerframe the tableID. How can I 
do that? 



Thanks a lot, 

Adrian



Re: [PHP] PHP Frames?

2002-02-25 Thread William Lovaton

You have to pass the params received in index.php to the rest of the
pages in the frames...

eg: http://mysite.com/index.php?s=1

so, the index.php script will looks something like this:


frameset cols=* rows=25%,* border=1 frameborder=1
  frame src=head.php? print ?s=$s ? name=menu;
  frame src=body.php? print ?s=$s ? name=main;
  frame src=foot.php? print ?s=$s ? name=foot;
/frameset


William.


El lun, 25-02-2002 a las 03:03, Jason Caldwell escribió:
 I'm trying to pass vars into a php (html) file that uses FRAMES -- top, main
 and bottom.
 
 The TOP frame has my menu items.  The MAIN frame will show the pages, and
 the BOTTOM frame will have my footer stuff --
 
 Now, when I click on a menu item in the TOP frame I want the TOP and MAIN
 frames to update.  My frame page is named: index.php and it links to
 head.php (goes in TOP frame), body.php (goes in MAIN frame), and footer.php
 (goes in BOTTOM frame.)
 
 So, what I tried (seems logical enough) is to simply call the INDEX.PHP file
 with some vars attached, like so a href=http://127.0.0.1/index.php?s=1
 target=_topLoad Page/a
 
 Within the Index.php Frames Page (which the var gets passed to) the other
 pages don't seem to recognize the var and simply do nothing --
 
 For example -- in the head.php file I have it update an image if s=1, and in
 the body.php file, if s=1 a certain page loads -- this all works fine
 without frames.
 
 Any suggestions -- I want to use frames if I can, and avoid Java.
 
 Thanks.
 Jason



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP Frames?

2002-02-24 Thread Jason Caldwell

I'm trying to pass vars into a php (html) file that uses FRAMES -- top, main
and bottom.

The TOP frame has my menu items.  The MAIN frame will show the pages, and
the BOTTOM frame will have my footer stuff --

Now, when I click on a menu item in the TOP frame I want the TOP and MAIN
frames to update.  My frame page is named: index.php and it links to
head.php (goes in TOP frame), body.php (goes in MAIN frame), and footer.php
(goes in BOTTOM frame.)

So, what I tried (seems logical enough) is to simply call the INDEX.PHP file
with some vars attached, like so a href=http://127.0.0.1/index.php?s=1
target=_topLoad Page/a

Within the Index.php Frames Page (which the var gets passed to) the other
pages don't seem to recognize the var and simply do nothing --

For example -- in the head.php file I have it update an image if s=1, and in
the body.php file, if s=1 a certain page loads -- this all works fine
without frames.

Any suggestions -- I want to use frames if I can, and avoid Java.

Thanks.
Jason



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP FRAMES Question

2001-11-15 Thread Miles Thompson

This has probably been dealt with before, but I'm unable to get my link to 
open in the target frame, it always opens in the same frame.  This line of 
code:

printf(a href=\ %s?member_id=%s target=sub_detl \  %s /a \n, 
$target_url, $myrow[member_id], $myrow[member_id]);

typically expands, when the mouse pointer is placed over it, to:

http://hostname/sitename/adm_sub_dtl.php?member_id=T0003 target=sub_detl

This is the code for the page which creates the framesets ..

HTML
HEAD
 TITLESubscriber Administration/TITLE
/HEAD
FRAMESET rows=70%,30%
 FRAME name=sub_lst src=adm_sub_lst.php scrolling=auto
 FRAME name=sub_dtl src=adm_sub_dtl.php scrolling=auto
/FRAMESET
/HTML

I don't see any mysteries here, and it appears syntactically correct.

Any suggestions will be welcome - Miles Thompson


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP FRAMES Question

2001-11-15 Thread Sam Masiello


In your printf statement, you are targetting  sub_detl whereas in your
frameset you name the frame sub_dtl.  Naturally, these values should
match.

HTH

Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
[EMAIL PROTECTED]

- Original Message -
From: Miles Thompson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 12:41 PM
Subject: [PHP] PHP  FRAMES Question


 This has probably been dealt with before, but I'm unable to get my link to
 open in the target frame, it always opens in the same frame.  This line of
 code:

 printf(a href=\ %s?member_id=%s target=sub_detl \  %s /a \n,
 $target_url, $myrow[member_id], $myrow[member_id]);

 typically expands, when the mouse pointer is placed over it, to:

 http://hostname/sitename/adm_sub_dtl.php?member_id=T0003 target=sub_detl

 This is the code for the page which creates the framesets ..

 HTML
 HEAD
  TITLESubscriber Administration/TITLE
 /HEAD
 FRAMESET rows=70%,30%
  FRAME name=sub_lst src=adm_sub_lst.php scrolling=auto
  FRAME name=sub_dtl src=adm_sub_dtl.php scrolling=auto
 /FRAMESET
 /HTML

 I don't see any mysteries here, and it appears syntactically correct.

 Any suggestions will be welcome - Miles Thompson


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP FRAMES Question

2001-11-15 Thread Miles Thompson

Richard,

Thanks. I missed that completely.

Miles

At 09:47 AM 11/15/01 -0800, Richard S. Crawford wrote:
Try:

printf(a href=\%s?member_id=%s\ 
target=\sub_detl\%s/a\n,$target_url, 
$myrow[member_id],$myrow[member_id]);

The target attribute must be outside of the quotes which contain the URL 
string, as such:

 a href=http://my.url.com; target=my_frame blah /a 

The way you had it rendered the link as:

 a href=http://my.ur.com target=my_fame blah /a 

which won't work.


At 09:41 AM 11/15/2001, you wrote:
This has probably been dealt with before, but I'm unable to get my link 
to open in the target frame, it always opens in the same frame.  This 
line of code:

printf(a href=\ %s?member_id=%s target=sub_detl \  %s /a \n, 
$target_url, $myrow[member_id], $myrow[member_id]);

typically expands, when the mouse pointer is placed over it, to:

http://hostname/sitename/adm_sub_dtl.php?member_id=T0003 target=sub_detl

This is the code for the page which creates the framesets ..


I don't see any mysteries here, and it appears syntactically correct.

Any suggestions will be welcome - Miles Thompson


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is 
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]