Hey,

> if (isset($submit)){
>         if (!empty($qty))
>         {  echo "Please enter the quantity for your quotation enquiry.";}
>
>
> When nothing was filled in for $qty the if condition did not prompt me to
> enter a quantity.

This is wrong:

if (!empty($qty))
        {  echo "Please enter the quantity for your quotation enquiry.";}

You're checking to see whether or not qty IS empty, this statement checks
for when when it is NOT empty

if (empty($string)) {
    // This is an empty string.
}

if (!empty($string)) {
    // This is NOT an empty string.
}


James



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to