Example #1
0
                } else {
                    $add_notice->piroity = '0';
                    //0 means low pirority
                }
                if (isset($exlink) && !empty($exlink)) {
                    $add_notice->exlink = $exlink;
                } else {
                    $add_notice->exlink = '';
                    // exlink is set to empty (default value)
                }
                if (isset($img) && !empty($img)) {
                    // code for doing something with it
                } else {
                    $add_notice->img = 'NULL';
                }
                $add_notice->add_notice($userid);
                //var_dump($add_notice);	// only for testing
                //put a redirector to some page
            }
        } else {
            echo "It seems You Missed out something";
        }
    }
    ?>
                <form action="<?php 
    echo $current_file;
    ?>
" method="POST" enctype="" target="">
                  <div class="mdl-textfield mdl-js-textfield">
                    
                    <fieldset>