how to resolve Undefined index error?
<p>hey guys i got following error
Undefined index: hname in C:\Temp\5Aug2010\job.php on line 38</p>

<p>this error occur in insert command
i use </p>

<pre><code>'".mysql_real_escape_string($_POST['hname'])."'
</code></pre>

<p>where hname is a textbox field on form</p>

<p>if i use</p>

<pre><code>'".mysql_real_escape_string((isset($_POST['hname'])))."'
</code></pre>

<p>then error will gone but in database it show empty field.</p>
