error: Notice: Undefined index: fk
<p>can someone assist me with fixing the error i'm receiving.</p>

<pre><code>$search_key = '';
/*if(isset($_POST) &amp;&amp; ($_POST["fk"])!=NULL){
    $search_key = $_POST["fk"];
}elseif(isset($_GET) &amp;&amp; ($_GET["fk"]!=NULL)){
    $search_key = $_GET["fk"];
}
*/

if(!isset($_POST["fk"])){
    $search_key = $_POST['fk'];
}elseif(isset($_GET["fk"])){
    $search_key = $_GET["fk"];
}
</code></pre>
