dealing with this code $_POST['custom´]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux