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. Link to comment https://forums.phpfreaks.com/topic/160273-php-post/ Share on other sites More sharing options...
Garethp Posted May 30, 2009 Share Posted May 30, 2009 What is it your asking? Link to comment https://forums.phpfreaks.com/topic/160273-php-post/#findComment-845796 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? Link to comment https://forums.phpfreaks.com/topic/160273-php-post/#findComment-845814 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? Link to comment https://forums.phpfreaks.com/topic/160273-php-post/#findComment-845818 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. Link to comment https://forums.phpfreaks.com/topic/160273-php-post/#findComment-845832 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... :-) Link to comment https://forums.phpfreaks.com/topic/160273-php-post/#findComment-845853 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.