PHP - not sure how to ask - regarding variables and $_POST
- by Phil
I have a PHP form. The form works but I'm trying to test to see if a value other than the first item has been selected. I can't figure out how to write the If statement.
$products = array(
'' => 1,
'Item 2' => 2,
'Item 3' => 3,
'Item 4' => 4,
'Item 5' => 5,
'Item 6' => 6
);
$html = generateSelect('products', $products);
…