how can i get correct this undefined index error
<p>how do i get ride of this error? i know most of the time when something like this pops up,i can use the <code>isset function</code> but what i tried is not working ,how can i correct this error</p>

<pre><code>Notice: Undefined index: real in C:\xampp\htdocs\mysite\captcha2\index.php on line 12
</code></pre>

<p>my code on line 12 is this below</p>

<pre><code>$real = $_session['real'];
</code></pre>

<p>this is my php code</p>

<pre><code>&lt;?php
if(isset($_POST['submit'])){
session_start();
$_session[] = "";
$real = $_session['real'];
$guess = $_POST['captcha'];
$name = $_POST['name'];

if ($real == $guess){

echo "hi $name,you types the correct name";
} 
else {

    echo "Nooo";
}

} else {
?&gt;
</code></pre>

<p>thanks in advance</p>
