sseeley Posted May 30, 2009 Share Posted May 30, 2009 I am running this code... <?php session_start(); $i=0; $h=500; $_SESSION['h'] = $h; echo "<form action=\"test2.php\" method=\"POST\" name=\"test1\">"; while ($i <= $h) { $postID = "post" . $i; $postValue = "postValue" . $i; echo $postID. " - "; echo "<input type=\"text\" name=$postID id=$postID value=$postValue>"; echo "<br/>"; $i++; } echo "<input type=submit value=\"submit\">"; echo "</form>"; ?> This posts to this page... <?php session_start(); $i = 0; echo $_SESSION['h']; echo "<br/>"; while ($i <= $_SESSION['h']) { $postID = $_POST['post' . $i]; echo $i. " - " . $postID; echo "<br/>"; $i++; } ?> However only the first 200 records are posted on my server. On my test system it works fine, can anyone tell me which setting I can adjust on my server? Many thanks in advance. Quote Link to comment Share on other sites More sharing options...
Garethp Posted May 30, 2009 Share Posted May 30, 2009 What is it your asking? Quote Link to comment Share on other sites More sharing options...
sseeley Posted May 30, 2009 Author Share Posted May 30, 2009 Why does my hosted server only post 200 records, but my local server on my PC will post 10,000 records? Is there a setting I can change? Quote Link to comment Share on other sites More sharing options...
Garethp Posted May 30, 2009 Share Posted May 30, 2009 That's something you should mail your server admins about, but why are you storing everything in SESSIONS anyway? Quote Link to comment Share on other sites More sharing options...
sseeley Posted May 30, 2009 Author Share Posted May 30, 2009 I have mailed my server admin, but I was seeing if anyone here would know the solution. I do not know of any other way of sending my data between pages so thats why I am using posts and sessions. I am not a very proficient programmer. Quote Link to comment Share on other sites More sharing options...
DarkSuperHero Posted May 30, 2009 Share Posted May 30, 2009 why would you need 10k records on one page, if the first question... :-) Quote Link to comment 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.