//I want to check "adjustBtn'. $item_id.'" if it is set
<input name="adjustBtn' . $item_id . '" type="submit" value="change" />
//I tried all syntax but no luck
if(isset($_POST['submit'] , $_post["$item_id"] )){
this is my code. What Im trying to achieve is to check if the button is set. My problem is I dont know the right syntax for isset function help me please
The browser uses the name property of an element. So if you want to check if "adjustBtn'. $item_id.'" is set, try changing your code to:
if (isset($_POST["adjustBtn". $item_id]) {
edit: adjusted quotes