Hi Guys,
As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M.
I figured out that I can only grab the selected value for PHP to process if it was submitted, i.e., through a form. Then I could do something like this:
if($_POST['dropdown'] == 'M') {
$product = 'link';
} else if {
//do something else
}
But I am not sure if this is possible using a button... I'm still a beginner here, but any thoughts?