Thought so. Now the code is not showing up on the page.
But, I get a "error on page" when I click on it.
Here is where the page is:
http://www.pennhockey.org/stats/test_buttons_2.php
Here is what I am using:
<HEAD>
<script language=javascript>
function doSubmit(Form, Action)
{
Form.action = Action;
Form.submit();
}
</SCRIPT>
<TITLE>PENN Hockey Club - Scoreing Leaders</TITLE>
<p align="center">
<?
include ("http://www.pennhockey.org/header.php");
?>
<h1 align="center">Select a Team to View Goal Rankings</h1>
<?
$connection = mysql_connect("xxxx", "xxxx", "xxxx");
$fields = mysql_list_fields("xxxx", "PH_PLAYERS", $connection);
?>
<!--
<form method="post" action="goal_rankings_new.php">
-->
<select name="searchteam">
<?php
$query = mysql_query('select TeamID, TeamName, Nickname, TeamCity from PH_TEAMS') or die
(mysql_error());
while($row = mysql_fetch_array($query)) {
echo("<option value=\"${row['TeamID']}\">
${row['TeamName']}, ${row['Nickname']}, ${row['TeamCity']}\n");
}
?>
</select>
<select name="searchseason">
<?php
$qSEASON = mysql_query('select SeasonID, SeasonName from PH_SEASON') or die
(mysql_error());
while($row2 = mysql_fetch_array($qSEASON)) {
echo("<option value=\"${row2['SeasonID']}\">
${row2['SeasonName']}\n");
}
?>
</select>
<input type="button" value="Goals" name="B3" onClick="doSubmit(this.form, 'goal_rankings_new.php');">
<input type="button" value="Penalties" name="B3" onClick="doSubmit(this.form, 'penalties_rankings.php');">
</form>
<p align="center">
<?
include ("http://www.pennhockey.org/footer.php");
?>
************************
Any ideas?