Skip to content

Tag: php

Checkbox HTML array syntax doesn’t work in CakePHP 4

I have an application in CakePHP 4 where I’m doing the equivalent of what’s described in Make array from checkbox form The markup I have is simple: So somebody could for example check “Service 1” and “Service 3” and omit “Service 2”, e.g. I’ve used the For…

Retrieving PayPal email address after payment?

When you are setting up a PayPal Buy Now Button, you can take customers to the URL when they finish checkout. Is there a way to retrieve their PayPal email immediately after PayPal checkout using $_GET? Does PayPal append some kind of ?email=email@address.com at the end of your thankyou page? Or is there any …

Laravel :value in another language

Laravel 8 php 7.1 I have a form with some input fields. The form is available in English and German. If you don’t enter something in the German version and want to send it, the following text appears: (In English that means This field is required if the job description is not available. ) How can I repl…