accepting variable URL to display

cyclonebri
01-16-2002, 08:36 AM
Hi all,

I am working on some PHP and HTML, that will be used on both Windows and Unix machines here. I am stuck searching for some answers and I'm hoping maybe someone here could give me a hint or suggestion.

I currently have a page that has three frames, the top frame being a disclaimer/banner and the bottom frame is options to download, send email, etc. The problem is that I need to make the middle frame accept a variable URL sent as a variable to the page. I'm sure this can be done in either HTML or PHP or both, but I am having problems finding the answer. Has anyone done this before and/or does anyone know a good place to reference for this information?

Thanks in Advance,
Brian

Flyguy
01-16-2002, 08:40 AM
You want to display all kind of different pages in the middle frame, based on the links they clicked on bottom or top frame?

If so you could do this:
<a href="blabla.html" target="MiddleFrameName">asda</a>

cyclonebri
01-16-2002, 09:18 AM
I'm sorry, I was unclear about what I was trying to do. I am not trying to display based on what they are clicking on, but based on what has been sent.

What is happening is that this page will go inside a lager application, and this page will display a report generated previously by a SQL call for either a parameter query or a canned report. When the call finishes, it will generate a url, which will then be passed to my page as the variable $URL much like
<input type="Submit" name="URL">
would do. The problem is that I have to take that variable and then display a page based on it.

I have tried this:
<meta href="<? $URL ?>"></meta>

trying to integrate it using php, but the page will not display.

Any suggestions?

Flyguy
01-16-2002, 09:27 AM
I can only point you to some javascript resources, maybe the technique used there can help you.

http://developer.irt.org/script/frame.htm

http://tech.irt.org/articles/js126/index.htm

Succes!

cyclonebri
01-16-2002, 10:58 AM
I just wanted to say thank you for your help. I actually was able to get what I wanted to work finally using a simple html echo in php. Since the variable coming in was $URL, I just did this:

<frameset rows="10%,80%,10%" frameborder="no" border="1" framespacing="0">
<frame src="header.php"
frameborder="yes" border="1" framespacing="0" name="box-1"> </frame>

<?
echo "<frame src='$URL' frameborder='yes' border='1' framespacing='0' name='box-3'></frame>";
?>
...

the frame 'box-3' then takes that url and displays it accordingly.

Thanks again for pointing me to the Java scripts. Unfortunately, I was unable to make any of them work correctly :(.

Thanks,
Brian

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum