fansa Posted January 8, 2009 Share Posted January 8, 2009 Hye all frenz... I got a question for the botton coding.what is the meaning for isset statement.Actually i need to filter about once user click proceed button that function click either the status is N or not,if not can save...Help me from brain all brilliant frenz... if(!isset($iph_correction->ic_id)){ if ((!isset($_POST['org_id']) && !isset($_POST['org_idto'])) && ($iph_correction->ic_status != 'N')) { if (!empty($_POST['din_id'])) { $ic_din_exists_01 = "Y"; } if (!empty($_POST['din_idto'])) { $ic_din_exists_02 = "Y"; } $iph_correction_values[4] = $ic_din_exists_01; $iph_correction_values[7] = $ic_din_exists_02; $iph_correction_cnames = implode($iph_correction_cnames ,","); $iph_correction_values = implode($iph_correction_values,"','"); $insert01 = new myclass; $insert01 = $insert01->insert('iph_correction',$iph_correction_cnames,$iph_correction_values); } } Quote Link to comment Share on other sites More sharing options...
corbin Posted January 8, 2009 Share Posted January 8, 2009 "isset — Determine whether a variable is set" http://php.net/isset Example: <?php $var = "blah"; if(isset($var)) { echo 'var is set'; } if(isset($othervar)) { echo 'othervar is set'; } would ouput var is set. Quote Link to comment Share on other sites More sharing options...
fansa Posted January 8, 2009 Author Share Posted January 8, 2009 OK thanks...much appreciated Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.