ternary conditional not working

Trying to simplify my php script using a ternary control:

[php]<FORM $ACTION=<?PHP echo($TEST) ? ‘"$_SERVER[‘PHP_SELF’]"’;
: ‘“https://www.paypal.com/cgi-bin/webscr”’; METHOD=“POST”;?>[/php]

This throws a syntax error ’ unexpected T_STRING’. So far, I can’t find it.
In the past, I’ve fixed these, but not this one.
Any suggestions appreciated
usit

I’m not using an editor, so I’m just taking a guess here…

[php] <FORM ACTION=<?php echo($TEST) ? $_SERVER[‘PHP_SELF’]
: “https://www.paypal.com/cgi-bin/webscr”; ?> METHOD=“POST”>[/php]

[php][/php]

After removing the customary ‘;’ ending php statements, your solution works fine!
THANKS JimLfor the quick and effective end to my delima.
usit

Sponsor our Newsletter | Privacy Policy | Terms of Service