<p>Let's imagine I got this:</p>

<p>index.php generates form with unpredictable number of inputs with certain IDs/Names and different values that can be edited by user and saved by script.php</p>

<pre><code>&lt;form action="script.php" method="post"&gt;
&lt;input id="1" name="1" type="text" value="1"/&gt;
&lt;input id="24" name="24" type="text" value="2233"/&gt;
&lt;input id="55" name="55" type="text" value="231321"/&gt;
&lt;/form&gt;
</code></pre>

<p>Script.php:</p>

<p>Here I need to get something like array of all inputs that were generated by index.php and save every value that corresponds to its id/name.</p>

<p>Is there a way to do this?</p>

i may be missing something in your question, but the
```
$_POST
```
variable will contain all the name => value pairs you're asking for. for example, in your above HTML snippet:
```
```
print_r($_POST);

// contains:

array
(
  [1] => 1
  [24] => 2233
  [55] => 231321
)

// example access:

foreach($_POST as $name => $value) {
  print "Name: {$name} Value: {$value} <br />";
}
```
```