Hello everyone,
I am not sure where to put this so I post this here.
Were building a small intern script that duplicates files but it needs a form to post the correct data.
So when I enter my order number I get a form with files which looks like this :
Now when I save the form I get this :
array(2) {
["dupliceer"]=>
array(10) {
[1]=>
array(2) {
["file"]=>
string(40) "y:/1609998 Vomar/studio/test kopie 2.pdf"
["aantal_keer"]=>
string(1) "1"
}
[2]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[3]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[4]=>
array(2) {
["file"]=>
string(40) "y:/1609998 Vomar/studio/test kopie 5.pdf"
["aantal_keer"]=>
string(1) "2"
}
[5]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[6]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[7]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[8]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[9]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
[10]=>
array(1) {
["aantal_keer"]=>
string(0) ""
}
}
["submit"]=>
string(8) "verstuur"
}
I only want the filled in files, does this mean I need to unset all empty arrays ? ( yes there is something in it but it is empty to. )
Best regards,
Wouter/