Yeah. Btw, the slash was on it in my script..I don't know why it isn't there..odd.
Here is the code from the FIRST page that WORKS:
Code: Select all
<?php
$index = 1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
opentable();
include("modules/League/includes/league_header.php");
require_once("modules/League/includes/league_functions.php");
$current_user = $cookie[0];
$sql_ladders = sql_query("SELECT ladder_id, ladder_name FROM ".$prefix."_league_ladders");
echo "<center><font size=3><b>Clan Headquarters</b></font><br><br>";
echo "<center>
<table>
<form name=\"form1\" method=\"post\">
Ladder:  <select name=\"menuClanHQ\">";
for ($m=1; $m < sql_num_rows($sql_ladders)+1; $m++)
{
list($ladder_id, $ladder_name) = sql_fetch_row($sql_ladders);
echo "<option value=\"modules.php?name=League&file=clan_hq&op=load&view=roster&lid=$ladder_id\">$ladder_name</option>";
}
echo "</select> 
<input type=\"button\" name=\"Button1\" value=\"Go\" onClick=\"MM_jumpMenuGo('menuClanHQ','parent',0)\">
</form>
</table>
</center><br>";
Here is the code from the SECOND page that DOES NOT WORK:
Code: Select all
<html><title>All Out War : Join Ladder</title></html>
<?php
$index = 1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
opentable();
include("modules/League/includes/league_header.php");
require_once("modules/League/includes/league_functions.php");
$current_ladder = $_GET[lid];
$sql_ladders = sql_query("SELECT ladder_id, ladder_name FROM ".$prefix."_league_ladders");
echo "<center>
<table>
<form name=\"form1\" method=\"post\">
Ladder:  <select name=\"menuJoinLadder\">";
for ($m=1; $m < sql_num_rows($sql_ladders)+1; $m++)
{
list($ladder_id, $ladder_name) = sql_fetch_row($sql_ladders);
echo "<option value=\"modules.php?name=League&file=join_ladder&lid=$m\">$ladder_name</option>";
}
echo "</select> 
<input type=button name=ButtonGO value=Go onClick=\"MM_jumpMenuGo('menuJoinLadder','parent',0)\">
</form>
</table>
</center><br>";
if ($current_ladder > 0){
edit: I just figured the problem out. header.php contains a piece of code somewhere that is allowing working it. I am betting that the function mmjumpmenugo is in header.php.