Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $total_fields=24;
- //(Im getting the number of total files in a directory with a previous code, so this number can vary)
- <form action"second.php" method"post">
- $i=1;
- while ($i<$total_fields)
- {
- <input name='field".$i."' type='text' id='field".$i."' />
- }$i++;
- // submit button and other stuff
- </form>
- $i=1;
- $total_fields=24;
- while($i<$total_fields)
- {
- $field.$i= $_POST['field'.$i];
- echo $field.$i."<br>";
- $c++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement