[PHP] submitting form to a page with frames

2001-11-01 Thread Matt Fair

I have 2 pages page1.php and page2.php.  I want to submit the form and 
its values to page2.php.  page2.php has frames:
frameset rows=218,*
frame src=menu.php name=menuFrame
frame src=editor.php name=editorFrame
/frameset
How can I get the variables that were submitted from page1.php into the 
menuFrame?  When I do this it doesn't get any php variables, but if I 
take it out of the frame it works fine.
Thanks in advance,
Matt


-- 
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] submitting form to a page with frames

2001-11-01 Thread Jim Lucas

try using the $GLOBALS[variable_name] array.

Jim 
- Original Message - 
From: Matt Fair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 3:08 PM
Subject: [PHP] submitting form to a page with frames


 I have 2 pages page1.php and page2.php.  I want to submit the form and 
 its values to page2.php.  page2.php has frames:
 frameset rows=218,*
 frame src=menu.php name=menuFrame
 frame src=editor.php name=editorFrame
 /frameset
 How can I get the variables that were submitted from page1.php into the 
 menuFrame?  When I do this it doesn't get any php variables, but if I 
 take it out of the frame it works fine.
 Thanks in advance,
 Matt
 
 
 -- 
 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] submitting form to a page with frames

2001-11-01 Thread Tom Rogers

The simplest way is to use sessions to hold the values, or you can loop 
through the post vars and add them to the menu.php line like 
src=menu.php?var1=var2=xxx... which will get messy if you have a 
lot of fields.
Tom


At 09:08 AM 2/11/01, Matt Fair wrote:
I have 2 pages page1.php and page2.php.  I want to submit the form and its 
values to page2.php.  page2.php has frames:
frameset rows=218,*
frame src=menu.php name=menuFrame
frame src=editor.php name=editorFrame
/frameset
How can I get the variables that were submitted from page1.php into the 
menuFrame?  When I do this it doesn't get any php variables, but if I take 
it out of the frame it works fine.
Thanks in advance,
Matt


--
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] submitting form to a page with frames

2001-11-01 Thread Brent Rieck

Matt,
  It sounds like you have a process where the user does this:

  page1.php -
   fills out and submits form -
page2.php which builds a frameset -
 menu.php and editor.php as the frames, you want menu.php to
 know what the submitted form values were.

  If you've got sessions going cram them into the session, which would
be the easiest probably.  But if you don't, I'd suggest tacking the
variables on the end of the menu.php url something like this:

frame src=menu.php?var1=? print val1; ?...varN=? print valN; ? 
name=menuFrame

  If the amnount of data is too large to do via a get (I can't remember
how much it is, several K at least), you'll have to use some alternative
method to pass them around, a temp file would work, or stuff them into a
database and pull them out again (making sure to pass how to find them
to menu.php).

--Brent
[EMAIL PROTECTED] -- www.spek.org

On Thu, 2001-11-01 at 15:08, Matt Fair wrote:
 I have 2 pages page1.php and page2.php.  I want to submit the form and 
 its values to page2.php.  page2.php has frames:
 frameset rows=218,*
 frame src=menu.php name=menuFrame
 frame src=editor.php name=editorFrame
 /frameset
 How can I get the variables that were submitted from page1.php into the 
 menuFrame?  When I do this it doesn't get any php variables, but if I 
 take it out of the frame it works fine.
 Thanks in advance,
 Matt


-- 
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]