per1os Posted June 14, 2007 Share Posted June 14, 2007 <br /><option value = '17'>17</option><br /> I do know that the code there should be: <option value='17'>17</option> without the spaces/br's. HTML can be sensitive to spaces after a variable name. <div id='header'>Enter player results for <?php echo fdate($gamedate)?></div><br /><br /> <?php $result = mysql_query("SELECT id, name, team FROM players WHERE team in ('$visitor','$home') AND year='$year' ORDER BY team, name"); $count = mysql_num_rows($result); $teamck = ""; $i = 1; echo "<form method='post' action=''>"; echo "<table>"; echo "<tr><td colspan='14'><input type='hidden' name='count' value='" . $count . "'>"; echo "<input type='hidden' name='date' value='" . $gamedate . "'></td></tr>"; while ($myrow = mysql_fetch_assoc($result)) { $id = $myrow["id"]; $team = $myrow["team"]; if ($teamck != $team) { echo "<tr><td colspan='14' align='center'>$team</td></tr> <tr> <td>Name</td> <td>Order</td> <td>POS</td> <td>AB</td> <td>R</td> <td>1B</td> <td>2B</td> <td>3B</td> <td>HR</td> <td>RBI</td> <td>SF</td> <td>BB</td> <td>K</td> <td>E</td> </tr>"; } if ($count > 0) { $name = $myrow["name"]; echo '<tr><td colspan="14"><input type="hidden" name="id-' . $i . '" value="' . $id . '" />'; echo '<input type="hidden" name="name-' . $i . '" value="' . $name . '" />'; echo '<input type="hidden" name="team-' . $i . '" value="' . $team . '" />'; echo '<input type="hidden" name="gameid-' . $i . '" value="' . $gameid . '" /></td></tr>'; echo "<tr><td>$name</td>"; echo '<td><select name="battingorder-' . $i . '">'; echo "<option value='' selected></option>"; for ($n = 1; $n <= 17; $n++){ echo "<option value='$n'>$n</option>"; } echo "</select></td>"; foreach ($cols as $col) { echo '<td><input type="text" name="' . $col . '-' . $i . '" align="top" maxlength="2" size="2" /></td>'; } echo "</tr>"; $i++; $teamck = $team; } } echo "<tr><td colspan='14'><input type='submit' name='submit' value='Submit'></td></tr><br /><br />"; echo "</table></form>"; ?> Try it like I just posted with the option tag fixed. I do not know why you had <br /> in there, but it was not necessary and could of been screwing it up also. The only other thing I could think of that is happening is there is too much data being passed back to the php script, which may be the issue. Unsure. Anyhow give that a try and see what happens. Quote Link to comment https://forums.phpfreaks.com/topic/55282-blank-page-after-submit/page/2/#findComment-274264 Share on other sites More sharing options...
colickyboy Posted June 14, 2007 Author Share Posted June 14, 2007 Good catch on the spaces...I've changed that. However, it didn't fix the problem. It does seem like a lot of data being passed, but I've used this script last year without problems. That's part of what makes this maddening! Quote Link to comment https://forums.phpfreaks.com/topic/55282-blank-page-after-submit/page/2/#findComment-274339 Share on other sites More sharing options...
colickyboy Posted June 14, 2007 Author Share Posted June 14, 2007 unfortunately, i think i've stumped everyone. i created a form for one team instead of two teams to see if maybe too much data was causing the problem. indeed, a form for one team worked...except when a team's roster hits 19 people...then it stopped working again. so it does appear to be a limitation of how much data can be passed. does anyone know anything about this? there has to be a way around this b/c i'm sure others are submitting lots more data at a time than i am... Quote Link to comment https://forums.phpfreaks.com/topic/55282-blank-page-after-submit/page/2/#findComment-274955 Share on other sites More sharing options...
per1os Posted June 14, 2007 Share Posted June 14, 2007 post_max_size integer Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size. When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ. If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty. This can be tracked in various ways, e.g. by passing the $_GET variable to the script processing the data, i.e. <form action="edit.php?processed=1">, and then checking if $_GET['processed'] is set. try using www.php.net/ini_set to set the post_max_size to be like 4 MB's and that should take care of it. Hopefully your server allows the ini_set directive. Quote Link to comment https://forums.phpfreaks.com/topic/55282-blank-page-after-submit/page/2/#findComment-274975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.