ok, did you catch what redhead said?
PHP Code:
if ($ravvarone = $cust_variableone && $ravvartwo = $cust_variabletwo)
you are
assigning values in your 'if' statement. when you assign values in an if statement, it is usually always going to return true.
as he suggested, didn't you mean to check for equality with
== ?
in example:
PHP Code:
if ($ravvarone == $cust_variableone && $ravvartwo == $cust_variabletwo)