dealing with this code $_POST['custom´]

From: Date: Fri, 16 Dec 2011 21:52:50 +0000
Subject: dealing with this code $_POST['custom´]
Groups: php.general 
Request: Send a blank email to php-general+get-316044@lists.php.net to get a copy of this message
Hello mates, My problem is very simple, I want to save the forwards emails in some contact list so I'm saying what list in the following code: } else { $saving_list = $_POST['custom'] == 'FR' ? 148 : 147; So, what I'm actually doing is: } else { $saving_list = $_POST['custom'] == 'FR' ? 152 : 148 : 147; But, it doest make anything, also in Windows with Dreamweaver it says: "syntax error" I'm not an advanced user of PHP, but I really don't get why adding just another id (of a contact list) would be a "syntax error" if I only use 148:147 it works fine! Any help would be appreciated. Regards -- Carlos Sura.- www.carlossura.com

« previous php.general (#316044) next »