Skip to content
Advertisement

Symfony6 – add iput field after submitting form

i have an ChoiceType::class input field in my form with, now just as an example, two choices: ‘choices’ => [‘type1’ => ‘1’, ‘type2’ => ‘2’] now when the user select type2 i want to add an exta TextType::class inputfield to the form. But i dont want to show the input field before and i want it to be required if

Site is fast on localhost but slow on server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

code event[] calendar in laravel 8 not working

I created a calendar with laravel 8 and PHP 8,it is running ok in php 7 but I have to upgrade to php 8 because of the demands of the times I have successfully saved data in the database but the data in mysql does not appear in the calendar, even though I have used event[], I have checked that

Laravel – Insert Selected Row

I have a table : header 1 header 2 button First row insert  Second row insert Third row insert I want when the insert button is clicked, the row with that button is inserted in the database. So far I have in the controller : And in blade : But the last row is inserted whatever button is clicked.. Answer

Trying to add a select tag feature along with Jquery PHP search code

Here is the code I am using for a search function, it fetches the data from fetch_data.php and it works. But I would like to add an additional filter option to the search page. For example Country or City. I tried many methods, but none worked. this fetches data from fetch_data.html as $_POST[‘query’] I would also like to filter data

Delete image file from directory in PHP on remote server and localhost

I’m trying to figure out, how to delete correctly image file with summernote from directory folder on remote server and localhost. So, image successfully uploaded from summernote editor and located by directory path: and C:xampphtdocsuserblogadmineditor-delete.php code: or Warning: unlink(): http does not allow unlinking in C:xampphtdocsuserblogadmineditor-delete.php Localhost correct path must be C:/xampp/htdocs/blog/uploads/img-uploads/154_20220702.png, but with unlink($_SERVER[‘DOCUMENT_ROOT’] .’/’. $file_name); the path contains

PHP 8 – merge transparent image over another one

I have two images: $imageBG is the image which needs to be as background $stamp is an image with the same dimensions and has text on it, the background of it is completely transparent. I tried: It results in only $stamp being visible without the background $imageBG then I tried: now only $imageBG is visible I also tried couple other

PHP – Array For Loop Not Storing Values

I created an empty array and want to store values from another array coming from a form. I am getting only the last value stored in the array, it is for some reason overlapping the values that need to be stored in a multidimensional array. The Output I am getting is 0 – Array 1 – Array and so on

Advertisement