This is my first post here, though I come here a lot when I run into snags. I can usually find my answer (thanks Search button!), but I can't seem to this time.
I'm working on a football site to keep stats and pictures and such from games. I have several different tables that I'm pulling data from and all of them have worked great until this one.
This particular code only gets the first 10 items, no matter what. If the first 10 are blank, then nothing at all is put into the table. EXCEPT for the requested $gameid. That goes in fine, even though it's being requested last (?).
This code is my table that I input the stats into:
<?
$gameid = $_REQUEST['game'];
echo '<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<title>NCAA Football</title>
</head>
<body>
<table align="center" width="600" style="border: 2px solid #B8B8B8;" cellpadding="2" cellspacing="0">
<form action="newteamleaders.php" method="post">
<tr>
<!----- HOME TEAM STATS ------>
<td>
<table align="center" width="300" style="border: 2px solid #B8B8B8;">
<tr align="center" cellpadding="2" cellspacing="0">
<td align="center" colspan="2">
<big><b>Home Team</big></b><br>
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Leading Passer: </b>
</td>
<td align="left" width="150">
<input name="homeleadingpasser" type="text" style="width: 150px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Passing Yards: </b>
</td>
<td align="left" width="150">
<input name="homepassingyards" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Pass Attempts: </b>
</td>
<td align="left" width="150">
<input name="homepassattempts" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Completions: </b>
</td>
<td align="left" width="150">
<input name="homecompletions" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Interceptions: </b>
</td>
<td align="left" width="150">
<input name="homeinterceptions" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Passing TDs: </b>
</td>
<td align="left" width="150">
<input name="homepassingtds" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Leading Rusher: </b>
</td>
<td align="left" width="150">
<input name="homeleadingrusher" type="text" style="width: 150px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Rushing Yards: </b>
</td>
<td align="left" width="150">
<input name="homerushingyards" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Rushing Attempts: </b>
</td>
<td align="left" width="150">
<input name="homerushattempts" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Rushing TDs: </b>
</td>
<td align="left" width="150">
<input name="homerushtds" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Leading Receiver: </b>
</td>
<td align="left" width="150">
<input name="homeleadingreceiver" type="text" style="width: 150px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Receiving Yards: </b>
</td>
<td align="left" width="150">
<input name="homereceivingyards" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Receptions: </b>
</td>
<td align="left" width="150">
<input name="homereceptions" type="text" style="width: 50px;">
</td>
</tr>
<tr align="center" cellpadding="2" cellspacing="0">
<td align="right" width="150">
<b>Receiving TDs: </b>
</td>
<td align="left" width="150">
<input name="homereceivingtds" type="text" style="width: 50px;">
</td>
</tr>
</table>
</td>
//away team stats etc.
<tr align="center" cellpadding="2" cellspacing="0">
<td align="center" colspan="2">
<input type="hidden" name="game" value="',$gameid,'">
<input type="submit" value="Submit Entry">
</td>
</tr>
</form>
</table>
</body>
</html>';
?>
This code is the actual input page that's supposed to input the data into my table. It only echoes the first 10 values and the gameid.
<?
$hostname = "hostname";
$username = "username";
$password = "password";
$database = "database";
$homeleadingpasser = $_POST['homeleadingpasser'];
$awayleadingpasser = $_POST['awayleadingpasser'];
$homepassingyards = $_POST['homepassingyards'];
$awaypassingyards = $_POST['awaypassingyards'];
$homepassattempts = $_POST['homepassattempts'];
$awaypassattempts = $_POST['awaypassattempts'];
$homecompletions = $_POST['homecompletions'];
$awaycompletions = $_POST['awaycompletions'];
$homeinterceptions = $_POST['homeinterceptions'];
$awayinterceptions = $_POST['awayinterceptions'];
$homepassingtds = $_POST['$homepassingtds'];
$awaypassingtds = $_POST['$awaypassingtds'];
$homeleadingrusher = $_POST['$homeleadingrusher'];
$awayleadingrusher = $_POST['$awayleadingrusher'];
$homerushingyards = $_POST['$homerushingyards'];
$awayrushingyards = $_POST['$awayrushingyards'];
$homerushattempts = $_POST['$homerushattempts'];
$awayrushattempts = $_POST['$awayrushattempts'];
$homerushtds = $_POST['$homerushtds'];
$awayrushtds = $_POST['$awayrushtds'];
$homeleadingreceiver = $_POST['$homeleadingreceiver'];
$awayleadingreceiver = $_POST['$awayleadingreceiver'];
$homereceivingyards = $_POST['$homereceivingyards'];
$awayreceivingyards = $_POST['$awayreceivingyards'];
$homereceptions = $_POST['$homereceptions'];
$awayreceptions = $_POST['$awayreceptions'];
$homereceivingtds = $_POST['$homereceivingtds'];
$awayreceivingtds = $_POST['$homereceivingtds'];
$gameid = $_REQUEST['game'];
echo $gameid,'<br>';
echo $homeleadingpasser,'<br>';
echo $awayleadingpasser,'<br>';
echo $homepassingyards,'<br>';
echo $awaypassingyards,'<br>';
echo $homepassattempts,'<br>';
echo $awaypassattempts,'<br>';
echo $homecompletions,'<br>';
echo $awaycompletions,'<br>';
echo $homeinterceptions,'<br>';
echo $awayinterceptions,'<br>';
echo $homepassingtds,'<br>';
echo $awaypassingtds,'<br>';
echo $homeleadingrusher,'<br>';
echo $awayleadingrusher,'<br>';
echo $homerushingyards,'<br>';
echo $awayrushingyards,'<br>';
echo $homerushattempts,'<br>';
echo $awayrushattempts,'<br>';
echo $homerushtds,'<br>';
echo $awayrushtds,'<br>';
echo $homeleadingreceiver,'<br>';
echo $awayleadingreceiver,'<br>';
echo $homereceivingyards,'<br>';
echo $awayreceivingyards,'<br>';
echo $homereceptions,'<br>';
echo $awayreceptions,'<br>';
echo $homereceivingtds,'<br>';
echo $awayreceivingtds,'<br>';
?>
Any ideas?