Jump to content

For Every $_POST


tarun

Recommended Posts

Unfortunatley None Of These Methods Worked :(

The First Two Provided No Output And This:

<?php
$index=1;
while($_POST["file_".$index]<=10){
echo "File $index Uploaded<BR>\n";
$index++;
}
?>

 

Just Listed An Everlasting List Of Numbers. eg.

File 1 Uploaded

File 2 Uploaded

File 3 Uploaded

File 4 Uploaded

File 5 Uploaded

etc.

Link to comment
https://forums.phpfreaks.com/topic/54995-for-every-_post/#findComment-271924
Share on other sites

This Works As Mentioned By "chigley" And "pocobueno1388 "

 

<?php
foreach($_POST as $key => $value) {
}
?>

 

Is There A Way How I Can Make It More Advanced Since At The Moment It Uses All The $_POST Variables

How Do I Do It So It Only Uploads Fields With file_1 , file_2, file_3 etc. Up To An Unlimited Amount

Link to comment
https://forums.phpfreaks.com/topic/54995-for-every-_post/#findComment-272361
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.