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->update_notice($ids);
                //var_dump($add_notice);	// only for testing
                //put a redirector to some page
                header('location: entry.php?ref=' . $ids);
                //to redirect to default notice page
            }
        } else {
            echo "Make the changes in it";
        }
    }
    ?>
                <form action="<?php 
    echo "{$current_file}?ref={$ids}";
    ?>
" method="POST" enctype="" target="">
                  <div class="mdl-textfield mdl-js-textfield">