我需要在 PHP 中实现它:
if submit isset
AND myname isset
AND adress not empty
AND phonenumber not empty
AND email not empty
AND (
institution OR g_year not empty (one should be 'full')
OR
donation_p OR loan_p isset (should be set)
OR
donation_m OR loan_m isset (should be set)..
)
我写的:
if ((isset($_POST['submit']))
&& ($_POST['myname'] != '')
&& ($_POST['adress'] != '')
&& ($_POST['phonenumber'] != '')
&& ($_POST['email'] != '')
&& (($_POST['institution'] != '') || ($_POST['g_year'] != ''))
|| ((isset($_POST['donation_p'])) && (isset($_POST['loan_p'])))
|| ((isset($_POST['donation_m'])) && (isset($_POST['loan_m']))))
我的代码有什么问题?
我希望有人能给我答案..我希望你明白我想要什么;D