I'm looking at a JS course, and it goes through the AJAX part, I understand the packaging and everything, the only doubt I have is when validating it in php $usuario = isset($_GET["usuario"]) ? $_GET["usuario"]: $_POST["usuario"];
My doubt there is with the?, I know it's a shorter way to write the if else, but even so I do not understand it, the user variable is going to be the same as isset ("$ _ GET [" user "] ]) if it returns true, that is, it has something, otherwise $ _GET ["user"] = $ _POST ["user"] ??? I do not understand, how do I get the $ _POST ["user"] if I am sending it by getting from the form, I hope you understand me, if you do not explain what you are doing that part ... thanks