title: Problem of undefined variable msg and Undefined index weburl
body: <p>Today i was working on customer mail form and then i got this notice several time. Please anyone suggest me the proper solution for this issue.</p>
  
  <pre><code>&lt;?php
      if(isset($_REQUEST['Submit']))
      {
      $name = $_REQUEST['name'];
      $phone = $_REQUEST['phone'];
      $email = $_REQUEST['email'];
      $movingfrom = $_REQUEST['movingfrom'];
      $movingto= $_REQUEST['movingto'];
      $describe = $_REQUEST['describe'];
      $weburl = $_REQUEST['weburl'];
      $url =$_SERVER['HTTP_REFERER'];
      $ip=$_SERVER['REMOTE_ADDR'];
      $sub="Enquiry Mail from : ".$_REQUEST['email'];
      $from=$_REQUEST['email'];   
      }
      function getUserIpAddr()
      {
          if (!empty($_SERVER['HTTP_CLIENT_IP'])) //if from shared
          {
              return $_SERVER['HTTP_CLIENT_IP'];
          }
          else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))   //if from a proxy
          {
              return $_SERVER['HTTP_X_FORWARDED_FOR'];
          }
          else
          {
              return $_SERVER['REMOTE_ADDR'];
          }
      }
      if(($name == NULL) &amp;&amp;( $name== ""))
      {
      echo "Name is Mandatory  &lt;br&gt;";
      }
      if(($email == NULL) &amp;&amp;($email == ""))
      {
      echo "Email is Mandatory  &lt;br&gt;";
      }
      /*
      if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) {
        echo "Valid Email is Mandatory  &lt;br&gt;";
        }
       */
      if(($phone == NULL) &amp;&amp;($phone == ""))
      {
      echo "Phone No. is Mandatory &lt;br&gt;";
      }
      if(($movingfrom == NULL) &amp;&amp;($movingfrom == ""))
      {
      echo "Moving From City is Mandatory &lt;br&gt;";
      }
  
      if(($movingto == NULL) &amp;&amp;($movingto == ""))
      {
      echo "Moving To City is Mandatory &lt;br&gt;";
      }
  
      if(  (($email != NULL) &amp;&amp; ($email != "")) &amp;&amp; (($name != NULL) &amp;&amp; ($name != "")) &amp;&amp; (($phone != NULL) &amp;&amp; ($phone != "")) &amp;&amp; (($movingfrom != NULL) &amp;&amp; ($movingfrom != ""))&amp;&amp; (($movingto != NULL) &amp;&amp; ($movingto != "")) ) 
      {
              $msg.="----------------------------------------------------------------\n";
              $msg.="From:-\n";
              $msg.="Name            :$name\n";
              $msg.="Mobile          :$phone\n";
              $msg.="Email           :$email\n";
              $msg.="Moving From     :$movingfrom\n";
              $msg.="Moving to       :$movingto\n";
              $msg.="----------------------------------------------------------------\n\n";
              $msg.="Advertisement :-\n";
              $msg.="$describe\n";
              $msg.="REFERRER :                        $url\n";
              $msg.="IP Address: " . getUserIpAddr();
  
              $headers = "From: ${email}\n Reply-To: ${email}";
  
             mail("abc@xyx.in","Enquiry Mail from: xyz", "$msg","From:$email");
  
               echo "&lt;script language=\"JavaScript\"&gt;\n";
               echo "&lt;!-- hide from old browser\n\n";
  
          echo "function redirect() {\n";
          echo "window.location = \"" . "http://localhost/thanks" . "\";\n";
          echo "}\n\n";
  
          echo "timer = setTimeout('redirect()', '" . ($seconds*1000) . "');\n\n";
  
          echo "--&gt;\n";
          echo "&lt;/script&gt;\n"; 
  
      }
      else
      {
      header("location:localhost/index.php");
      }
      ?&gt;
  </code></pre>
  
  <p><strong>Notice: Undefined variable: msg in quote.php on line 59</strong></p>
  
  <p><strong>Notice: Undefined index: weburl quote.php on line 10</strong></p>
  
  <p>I found these above issue.
  Please anyone help me to fix this problem.</p>