i don't really know how to explain it...but here it goes
basically i'm trying to get drop down menu's to pop up after making a certain choice, like if you pick 'a' from the first drop down the next drop down menu to come up only has choices 'a1, a2, a3', if you were to have picked 'a1' you would have another drop down menu pop up that gave you choices 'a1a, a1b, a1c'...now i can get it to do all that, but the second and third drop down menu do not stay...the menu with 'a1' choices, is replaced with the menu with 'a1a' choices...but what i want is that the menu's stay up and do not get replaced..the first one stays because it's coded into the html, the others are coded above in the head area...
sorry about the messiness of the code...
the code is messy, because i've been testing around with it
PHP Code:
// this the word link
<?
if ($p == "link") {
include 'link.php';
$title = " links page ";
$bgcolor ="#999999";
$textcolor = "#ffffff";}
else {
$title = " passat info page for the b3 and b4 enthusist ";
$bgcolor = "#999999";
$textcolor = "#ffffff";}
?>
// this is word engine
<?
if ($p == "engines") {
//include 'engines.php';
$title = "engines page ";
$bgcolor = "#999999";
$textcolor = "#ffffff";}
?>
// this is for the second drop down menu
<?
if ($p == "b3") {
$b3 = "<form name=\"jump2\">
<select name=\"menu\" onChange=\"location=document.jump2.menu.options[document.jump2.menu.selectedIndex].value;\" value=\"GO\">
<option value=\"#\">pick engine</option>
<option value=\"Untitled-1.php?p=28\">2.8/2.9l</option>
</select>
</form>";
//include 'b3.php';
$title = "b3 page ";
$bgcolor = "#999999";
$textcolor = "#ffffff";}
?>
// this is the third menu that replaces the second menu
<?
if ($p == "28") {
$glx = "<form name=\"jump3\">
<select name=\"menu\" onChange=\"location=document.jump3.menu.options[document.jump3.menu.selectedIndex].value;\" value=\"GO\">
<option value=\"#\">pick article</option>
<option value=\"Untitled-1.php?p=thermo\">thermostat r/r</option>
<option value=\"Untitled-1.php?p=water\">water pump r/r</option>
</select>
</form>";
//include 'vr6.php';
$title = "2.8/2.9l b3 page";
$bgcolor = "#999999";
$textcolor = "#ffffff";}
?>
<?
if ($p == "thermo") {
include 'vr6thermo.php';
$title = " vr6 thermostate r/r page ";
$bgcolor ="#999999";
$textcolor = "#ffffff";}
?>
<title><?=$title?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="<?=$bgcolor?>" text="<?=$textcolor?>" link="#FFFFFF" vlink="#FFFFFF">
<table width="75%" border="0">
<tr>
<td width="11%"><a href="<? print "$PHPSELF?p=link"; ?>" style="text-decoration:none">links</a></td>
<td width="9%"> </td>
<td width="80%">
<?=$en_message?>
</td>
</tr>
<tr>
<td><a href="<? print "$PHPSELF?p=engines"; ?>"style="text-decoration:none" >engines</a></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>
<!-- this is the first drop down menu that stays -->
<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value="#">pick model</option>
<option value="<? print "$PHPSELF?p=b3"; ?>" style="text-decoration:none">b3</option>
<option value="<? print "$PHPSELF?p=b4"; ?>"style="text-decoration:none"">b4</option>
</select>
</form></td>
<td>
<?=$besection?>
<?=$message?>
<?=$b3?>
<?=$glx?>
</td>
<td> </td>
</tr>
<tr>
<td>
<!-- <a href="<? print "$PHPSELF?p=b3"; ?>"style="text-decoration:none" >b3</a> -->
<?=$vr6?>
</td>
<td> </td>
<td><?=$thermo?></td>
</tr>
</table>
any thoughts?