hey im getting error in paypalfunction. php like (Parse error: syntax error, unexpected T_IF).
when i inserted this code to my shipping cart.
when i click on the logo, it gives the error in paypalfunction. php like this Parse error: syntax error, unexpected T_IF in C:\wamp\www\tes t1\paypalfuncti ons.php on line 216
Im new to paypal.i have got the Merchant Login and password,and i have inserted password in the $API_Password filed.
plz help
when i inserted this code to my shipping cart.
Code:
<form id="frm2" name="frm2" method="post" action="expresscheckout.php">
<input name="Button" type="button" class='button' value="Keep Shopping" onclick="window.open('../index.php','_self');"/>
<input type='image' name='submit' src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif' border='0' align='top' alt='PayPal'/>
<?php $_SESSION["Payment_Amount"]=$totalCost; ?>
<input type="hidden" name="totalCost" value="<?php echo $_SESSION["Payment_Amount"]=$totalCost; ?>" />
</form>
when i click on the logo, it gives the error in paypalfunction. php like this Parse error: syntax error, unexpected T_IF in C:\wamp\www\tes t1\paypalfuncti ons.php on line 216
Im new to paypal.i have got the Merchant Login and password,and i have inserted password in the $API_Password filed.
plz help
Comment