Link to home
Start Free TrialLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

when the condition is true not go stop the code PHP

How can i stop the code if $MinimumPay  >  $payment  is true then the code stop not go to another line



   if( $MinimumPay  >  $payment  )
      {  echo " you need to pay   $MinimumPay ";
      echo "<input name='Cancel' type='button' id='button2' value='cancel' onClick='history.go(-1)' /> " ;
      }
    if( $payment < 0  )
      {  echo "can not less than 0 ";
      echo "<input name='Cancel' type='button' id='button2' value='cancel' onClick='history.go(-1)' /> " ;
      }      
ASKER CERTIFIED SOLUTION
Avatar of Ashish Patel
Ashish Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial