Hi Everyone, I am trying to generate an error message in php.
I have two drop down boxes on a website I am helping with, One for product, One for Size.
Product is either shoes or hand bags.
Size is a drop down that has different shoe and handbag sizes, for example shoe size six, shoe size seven, hand bag small, hand bag medium etc.
At the moment, I can select a hand bag size IF I have selected to purchase a pair of shoes.
The script below is what I am working with at the moment. But the page is still updating the database and not stopping or displaying the error message on screen.
What is it that I am missing? Thanks in advance.
if($purchasetype == "shoe") {
if((strstr($purchasesize != "shoe")))
{
$hint = 'Product Size Error';
registerError( $hint, $hint, $error_title, 'Select The correct shoe Size' );
$b1=false;
}
}