I am trying to echo the action for my form if a post equals 'paypal'
This is what I have:
<?php if $_POST['method'] == 'paypal' echo 'action="paypal/process.php"' else echo 'action="moneybookers/process.php" '?>
Do i need to print the variable before I do this? what am I doing wrong?
I get this error:
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /var/www/account/credits/credit_amount.php on line 27