Need Quick Frame Advice

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
virgil
Forum Commoner
Posts: 59
Joined: Thu Jun 13, 2002 11:43 pm
Location: New York, U.S.

Need Quick Frame Advice

Post by virgil »

Hey PhP's :D

I just need some advice before I spend 6 months learning JS for just one thing. What's the best way to come at this particular? Sessions or JS? Is it even possible? It almost seems to work, But working by trial and error is taking me forever.


I've' read the sticky and know the drill. I know, I know. Frames are trouble. But this is a must have. My problem is I have a form on a lone html page(not in the frame set) and am trying to submit the info to a form handling php page that resides within a frames page. I tried using

Code:
<form method="get" action="frames_page.htm" target="left" >


But that just sends the variables to the frames page, not the form handling php page("left"). It does work if the form starts out within the frame_page, but the form is large and has a large map, so a frame is too small to hold the form. So it has to start outside the frame page.

I really just need to...

Code:
<form method="get" action="frames_page.htm/form_handling.php" target="left" >


I know it dont work dat way. But thats the logic. A pass thru...

Thanks for all your help and kind, gentle, understanding... :roll:

Virgil
User avatar
Wayne
Forum Contributor
Posts: 339
Joined: Wed Jun 05, 2002 10:59 am

Post by Wayne »

try making the frames_page a php file. then when you call the php page you want to do the processing in the frameset repass the variables to that page.

Code: Select all

<frameset rows="70,*" framespacing="0" frameborder="0">
  <frame name="top" src="frm_top.html">
  <frame name="border_left" src="frm_left.php?var1=<?php echo $var1; ?>" >
</frameset>
or something like that.
virgil
Forum Commoner
Posts: 59
Joined: Thu Jun 13, 2002 11:43 pm
Location: New York, U.S.

Post by virgil »

WAYNE YOU ARE THE MAN!!! :D :D :D


Code: Select all

<frameset rows="70,*" framespacing="0" frameborder="0"> 
  <frame name="top" src="frm_top.html"> 
  <frame name="border_left" src="frm_left.php?<?=$_SERVER&#1111;'QUERY_STRING']?>" > 
</frameset>

<?=$_SERVER['QUERY_STRING']?> :D :D

Use the "get" method and append to the src!


This lets you pass all variables (even arrays) from a form to a frameset page and right on through to a page within the frames!!! No javascript, No sessions, No extra submits or hrefs! It's not good for passwords, but perfect for query results.GOTTA LOVE IT!

THANKS A BILLION Virgil :D :D :D
Post Reply