Page 1 of 1

Need Quick Frame Advice

Posted: Tue Jul 23, 2002 6:36 pm
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

Posted: Wed Jul 24, 2002 3:42 am
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.

Posted: Wed Jul 24, 2002 9:20 pm
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