like this:


if($pwd != $re_pwd)
{
//error
}