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