Skip to content

How to handle form submitted with JQuery

I have a multistep form. I’m validating each step with Javascript before submitting it to PHP. If the form’s last step passes validation tests. I’m submitting the form. like so $(UISelectors….

Weird behavior PHP DateTime and DateTimeZone

PHP DateTime and DateTimeZone works incorrectly for me around DST change dates. I wrote a simple function to convert local time to UTC and I called it with the midnight time from the 24th of Oct to the 2nd of Nov with the timezones Europe/Paris and CET: The output: For Europe/Paris I got the changed DST inste…

Json corrupt variable by addition of a character

I make an Ajax call to a server side php script. The php should return a json variable like this : {“erreur”:”Pas de diffusion possible avant le 20-11-2020″,”title”:”Diffusion”} And I got that : s{“erreur”:”Pas de diffusion possible avant le 20…