Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing URL data w/ FRAMES? 1

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
US
Perhaps this is impossible; but, does anyone know if you can pass data to a page called by a frameset?

i.e.

open index.htm?data=here&data=etc w/ data in url
(looks like this)
<html>
<head>
<title>TITLE HERE</title>
</head>

<FRAMESET ROWS=&quot;95,*&quot; border=0 frameborder=&quot;NO&quot;>
<FRAME SRC=&quot;./top.html&quot; NAME=&quot;top&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot;
SCROLLING=&quot;NO&quot; BORDER=&quot;0&quot; NORESIZE frameborder=&quot;NO&quot;>
<FRAME SRC=&quot;form.php&quot; NAME=&quot;form&quot; MARGINWIDTH=&quot;0&quot;
MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;AUTO&quot; BORDER=&quot;0&quot; NORESIZE frameborder=&quot;NO&quot;>

<noframes>

<body bgcolor=&quot;#FFFFFF&quot;>

<p> </p>
</body>
</noframes>

</FRAMESET>
</html>


And pass data to form.php?
 
If your frameset page is PHP, you could append the whole query string sent to the frameset to the form.php page.
It would look something like this:
<FRAME SRC=&quot;form.php<?=(empty($_SERVER['QUERY_STRING'])) ? &quot;&quot; : &quot;?&quot; . $_SERVER['QUERY_STRING']?>&quot; NAME=&quot;form&quot; MARGINWIDTH=&quot;0&quot;
MARGINHEIGHT=&quot;0&quot; SCROLLING=&quot;AUTO&quot; BORDER=&quot;0&quot; NORESIZE frameborder=&quot;NO&quot; />
That would pass on whatever values were passed to the frameset page to the form.php frame. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top