My prof gave us a php example in class and I'm having some trouble understanding a peice of code:
isset($_POST["item"])? $item = $_POST["item"]:$item = "Not Set"; isset($_POST["quantity"])? $quantity = $_POST["quantity"]:$quantity = "0";
Does isset just check if "item" is equal to something?
The format of the code is also giving me some trouble. I think this is some sort if statement santax, however, I'm not too sure on how to break down the code. How would I write it in a if-statement format?
Any help would be greatly appriciated.