Skip to content
Advertisement

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

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 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

Advertisement