I need to check inside the FormType which field has changed. Is there any method to do it? I’ve searched for a while, then tried to get edited entities field in few ways (with form events too) to catch the edited fields, but no simple result. Is there any way to do it easy, or I need to be more
Tag: forms
PHP Symfony Many to Many form
I have a many-to-many relationship between two tables in my database (1 artikel has more than 1 bestelling and vice versa), so I made a link table(bestelregel). But now I want to make a form so that I can add a new order with multiple products, but as I am new to this, I am not sure how to do
Make Laravel’s notIn validation rule case insensitive
I am storing an array of strings in my database (db column type is JSON). There is a form that allows users to add a value to this array. I want to make sure there are no duplicates in this array. The notIn validation rule appears be the simplest solution to prevent duplicates but it is case sensitive. So when
Add headers to CSV file via PHP
I have the following PHP script for creating CSV and collecting data from HTML form to CSV file, but I can’t add headers to the first row of CSV file. I’m a newbie in PHP world so I’ll appreciate if …
How to paste multiple values into multiple form inputs in one paste?
Say I copy And then select an input field, when I paste it, it automatically puts 1 into the first field, 2 into the second field, 3 into the 3rd etc etc. The values copied will separated by space, comma or a tab. The form is simple html and I use PHP to insert into database, whatever language the solution
How can I make Contact form 7 return the checkbox label and not the value data on mailing a form?
I have a Contact form 7 that the client insists goes to different mailboxes based on checkbox selection. I can do this by: This works perfectly but on the mail form they want the subject to be the key and not the value? This returns either: Is there a way to make the subject read: Many Thanks Answer To get
How to make a contact form in wordpress call another php file
I am trying to add a small contact form in the sidebar of my WordPress site. I transferred my code from it’s original html file into the appropriate WordPress php files. The only thing that isn’t working is the contact form. When I click on the send button it goes to the mailer.php file in the URL bar instead of
How to disable csrf in symfony?
I used the code below and it has csrf too. But how can I disable its csrf? I searched and Disable CSRF token on login form did not help, as there createFormBuilder() is not used in my case below, so what should I do? Answer
required not working
I’am using this code along with php code for a select and used required class to make it mandatory but it is not working. Does anyone can help me.I have included this html section along with php code. Answer Try to remove space value in your select category option
html5 date field input is correct but output is reversed
if have the following problem. in my html5 datefield, i have the input order dd.mm.yyyy (for example todays date: 27.04.2017). thats correct in my country and timezone. the posted value is in reversed order to my input. its yyyy-mm-dd (for example todays date: 2017-04-27). is there any way to change the timeformat if the the value is posted? ive found