PhP Undefined Variables
<p>Okay, so I'm trying to teach myself php off of other peoples code; Some of the code is probably outdated, but it works for going through the essentials until I have time to go to school. My issue is an Undefined Variable error. All I can find on the subject at this time is how to hide the error, but I'm not looking to hide; if it's hidden that doesn't mean the issue has been resolved it means that you have found a way to ignore it which I see as a big no no. It's giving you the error for a reason.</p>

<p>The line that I'm getting the error at.</p>

<pre><code>&lt;form method=post
      &lt;?php echo "action=\"registration.php?f=".(!$flag)."&amp;amp;s=".$sort."\""; ?&gt; 
      enctype="multipart/form-data" &gt;
</code></pre>

<p>Then this is the issue on the page.</p>

<pre><code>Notice: Undefined variable: flag in C:\wamp\www\info\registration.php on line 236
</code></pre>

<p>There's others that are identical, but I feel if I can learn how to fix this one here it will also be the solution for the others. If you need any extra information please let me know. Thanks in advance. Sorry for the being so finiky; I just don't want to ignore issues that are trying to broadcast right in my face.</p>
