Jump to content

PHP Post


sseeley

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.