Undefined index notice
<p>I have spent days trying to figure this out to no avail.  I have checked the PHP docs as well as multiple other form questions regarding the "undefined index" notice and what seems to be the usual solution "isset()" function.</p>

<p>But I cannot work out the solution in my case.</p>

<p>Here is the code:</p>

<pre><code>&lt;form action="" method="post"&gt;
&lt;!-- Here are all the form fields --&gt;
&lt;input type="submit" name="send" value="send"/&gt;
&lt;/form&gt;

&lt;?php

            $con = mysql_connect("#","#","#");
            if (!$con)
            {
                die('Could not connect: ' . mysql_error());
            }

            mysql_select_db("#", $con);

            $sql="
            INSERT INTO events (e_date, e_time, e_type, e_name)
            VALUES ('$_POST[form_e_date]','$_POST[form_e_time]','$_POST[form_e_type]','$_POST[form_e_name]')";

            if (!mysql_query($sql,$con))
            {
                die('Error: ' . mysql_error());
            }
            echo "1 record added";

            mysql_close($con)

        ?&gt;
</code></pre>

<p>The 4 notices occur on the line with the $sql variable starting at "VALUES" and refer to the form_e_date, etc.</p>

<p>I apologize for asking a question that I realize gets somewhat frequently, but I have tried other people's solutions which either do no work for me or else I am not implementing them correctly.</p>

<p>Please help, and please feel free to leave any other constructive feedback about my code as I'm a newbie.</p>

<p>Thanks!</p>
