Hi!
Following Situation (there´s a lot of dirty code to come, i know, i don´t want to hear this):
My site is more an searchable archive of a community...The Webserver is Apache 1.3.19 on Unix, php-Version is 4.0.3pl1, Database is Oracle 8.1, client is Win NT 4.0
I have a frameset with two frames. One is something like a navigation bar, the other shows the content. In the navigation frame is a link to present some help depending on which page you are. I get the page which is shown in the "content-frame" via Javascript, put it in a form und submit it to php. The php-Script does a query from the page-adress which it gets via the form and fetches the name of the help file. In IE it works perfectly in NS Communicator 4.61 it works not. Here is the code:
The "navigation-frame":
<HEAD>
<TITLE>Navigation</TITLE>
<SCRIPT language="javascript">
function whichpage() {
var seite=parent.mmain.location
document.write("<FORM ACTION='http://www.mysite.at/path/hilfe.php' TARGET='mmain' METHOD='POST' name='hs'>")
document.write("<INPUT NAME='adresse' TYPE='hidden' value='")
document.write(seite)
document.write("'>")
document.hs.submit()
parent.sitemap.location='navigation.htm'
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#ffffff">
Some HTML here
<A HREF="javascript:whichpage()">Help</A>
Some HTML here
</BODY>
mmain: Name of the "content-frame"
adresse:var with path of the page loaded in the "content-frame"
and now hilfe.php:
<?php
if (!Ora_Logon("user@db", "pwd")) {
include ("db_offline.htm");
}
$adresse=stripslashes($adresse);
trim ($adresse);
$conn = Ora_Logon("user@db", "pwd");
$curs = ora_open($conn);
ora_commitoff($conn);
$query= sprintf("select pfad from odin_hilfe where seite='".$adresse."'");
ora_parse($curs, $query);
ora_exec($curs);
$datei = ora_getcolumn($curs,0);
$datei=stripslashes($datei);
trim ($datei);
$hd="'http://www.mysite.at/path/".$datei;
$htext = file ($hilfedatei);
for ($i=0;$i<count($htext);$i++) {
print $htext[$i];
}
?>
The table has two columns, pfad and seite
Summary: In IE the SELECT-Statement works, in NS not: Funny it should be done on the server, not on the client´s side?
Thanks in advance, Albin