DEV Community

Discussion on: Why PHP...???

Collapse
 
sebbdk profile image
Sebastian Vargr • Edited

PHP is how you get ants. :)

On a side note, all fields send in a post request are strings.

Use integers instead, then you can parse the string to a number, and check for 0 or 1.

Or use a JSON payload instead like Khalyomede suggests. ;)

JSON has boolean as a type

Collapse
 
anwar_nairi profile image
Anwar

lmao your first sentence :')

Collapse
 
kevinhch profile image
Kevin

I will started to use it, thnx dudes :)