Skip to content

PHP Form Upload Error When Input File Field Is Empty

Here is the code for a form that will recreate the issue: When clicking “Upload Image” with no file uploaded, PHP 8 will create this error (I’ve included the print_r($_FILES[‘fileToUpload’]) output for reference). Array ( [name] => [full_path] => [type] => [tmp_name] =&g…

how to enter data into an array with a loop. laravel

I want to insert data from the database into an array that can be increased in number. So maybe you can use a loop but the data is stacked, not added and returns the last data i am trying to use for with $i++ to generate $variable.$i. that’s what I was expecting but I don’t understand how to run i…

Updating data after backend action TYPO3 11.5

Working on Typo3 11.5.13 I’m trying to update some data on my pages table after a be_user changed something. I read something about setting hooks for that purpose but I can’t seem to find a good explanation as to how hooks actually function within Typo3 and how to configure one, especially for my …