Hallo
kann mir jemand sagen warum meine SESSION Variablen nicht übergeben werden?
#### 1te Datei ####
<?
session_start();
include("../conf.inc.php");
require("function.php");
?>
<form method="post" action="hersteller.php" target="hersteller">
<?
echo $kopf;
$sql="SELECT DISTINCT product FROM labelfinder ORDER BY product";
$query=safe_query($sql);
echo "<select name=\"product\">\n";
echo "<option value=\"\"></option>";
while($row=mysql_fetch_array($query))
{
$product=$row["product"];
echo "<option value=\"$product\">";
product_name($product);
echo "</option>\n";
}
echo "</select>\n";
?>
</td>
<td><input type="submit" value="Go" name="prod"></td>
</tr>
</form>
</table>
##### Ende 1 Datei ####
##### Start 2 Datei #####
<?
session_start();
include("../conf.inc.php");
require("function.php");
?>
<form method="post" action="library.php" target="library">
<?
if(isset($prod))
{
echo $kopf;
$sql="SELECT DISTINCT hersteller, hersteller_nr FROM labelfinder WHERE product='$product' ORDER BY hersteller_nr";
$query=safe_query($sql);
echo "<select name=\"hersteller\">\n";
echo "<option value=\"\"></option>\n";
while($row=mysql_fetch_array($query))
{
$hersteller=$row["hersteller"];
$hersteller_nr=$row["hersteller_nr"];
echo "<option value=\"$hersteller_nr\">$hersteller</option>\n";
}
echo "</select>\n";
echo "</td>";
echo "<td><input type=\"submit\" value=\"Go\" name=\"firma\"></td>";
echo "</tr>";
echo "</table>";
}
?>
</form>
#### Ende 2te Datei ####
#### Start 3te Datei ####
<?
session_start();
include("../conf.inc.php");
require("function.php");
?>
<form method="post" action="label.php" target="label">
<?
if(isset($firma))
{
print_r(get_defined_vars());
echo $kopf;
$sql="SELECT id, library FROM labelfinder WHERE hersteller_nr='$hersteller' ORDER BY library";
$query=safe_query($sql);
echo "<select name=\"library\">\n";
while($row=mysql_fetch_array($query))
{
$id=$row["id"];
$library=$row["library"];
echo "<option value=\"$id\">$library</option>\n";
}
echo "</select>\n";
echo "</td>";
echo "<td><input type=\"submit\" value=\"Go\" name=\"lib\"></td>";
echo "</tr>";
echo "</table>";
}
?>
</form>
#### ENDE ####
es wird jedesmal nur die Variable der letzen Datei übernommen?
Gruß & Danke
Dirk
kann mir jemand sagen warum meine SESSION Variablen nicht übergeben werden?
#### 1te Datei ####
<?
session_start();
include("../conf.inc.php");
require("function.php");
?>
<form method="post" action="hersteller.php" target="hersteller">
<?
echo $kopf;
$sql="SELECT DISTINCT product FROM labelfinder ORDER BY product";
$query=safe_query($sql);
echo "<select name=\"product\">\n";
echo "<option value=\"\"></option>";
while($row=mysql_fetch_array($query))
{
$product=$row["product"];
echo "<option value=\"$product\">";
product_name($product);
echo "</option>\n";
}
echo "</select>\n";
?>
</td>
<td><input type="submit" value="Go" name="prod"></td>
</tr>
</form>
</table>
##### Ende 1 Datei ####
##### Start 2 Datei #####
<?
session_start();
include("../conf.inc.php");
require("function.php");
?>
<form method="post" action="library.php" target="library">
<?
if(isset($prod))
{
echo $kopf;
$sql="SELECT DISTINCT hersteller, hersteller_nr FROM labelfinder WHERE product='$product' ORDER BY hersteller_nr";
$query=safe_query($sql);
echo "<select name=\"hersteller\">\n";
echo "<option value=\"\"></option>\n";
while($row=mysql_fetch_array($query))
{
$hersteller=$row["hersteller"];
$hersteller_nr=$row["hersteller_nr"];
echo "<option value=\"$hersteller_nr\">$hersteller</option>\n";
}
echo "</select>\n";
echo "</td>";
echo "<td><input type=\"submit\" value=\"Go\" name=\"firma\"></td>";
echo "</tr>";
echo "</table>";
}
?>
</form>
#### Ende 2te Datei ####
#### Start 3te Datei ####
<?
session_start();
include("../conf.inc.php");
require("function.php");
?>
<form method="post" action="label.php" target="label">
<?
if(isset($firma))
{
print_r(get_defined_vars());
echo $kopf;
$sql="SELECT id, library FROM labelfinder WHERE hersteller_nr='$hersteller' ORDER BY library";
$query=safe_query($sql);
echo "<select name=\"library\">\n";
while($row=mysql_fetch_array($query))
{
$id=$row["id"];
$library=$row["library"];
echo "<option value=\"$id\">$library</option>\n";
}
echo "</select>\n";
echo "</td>";
echo "<td><input type=\"submit\" value=\"Go\" name=\"lib\"></td>";
echo "</tr>";
echo "</table>";
}
?>
</form>
#### ENDE ####
es wird jedesmal nur die Variable der letzen Datei übernommen?
Gruß & Danke
Dirk