title: Notice: Use of undefined constant method - assumed
body: <p>Hello i'm using sms sender in php and i'm getting this error</p>
  
  <p><code>Notice: Use of undefined constant method - assumed</code></p>
  
  <p>that's my code</p>
  
  <pre><code>&lt;?php
  ////////
  /* Sender SMS */
  ////////
  
      $request =""; //initialise the request variable
      $param[method]= "sendMessage";
      $param[send_to] = "91".$_SESSION['yourContact'];
      $param[msg] = "vamsi biyah hello the sms is working ahhahahahah  :D :D " . $_SESSION['tour_id'] . "";
      $param[userid] = $sms_userid;
      $param[password] = $sms_pass;
      $param[v] = "1.1";
      $param[msg_type] = "TEXT"; //Can be "FLASH”/"UNICODE_TEXT"/”BINARY”
      $param[auth_scheme] = "PLAIN";
      //Have to URL encode the values
      foreach($param as $key=&gt;$val) {
          $request.= $key."=".urlencode($val);
      //we have to urlencode the values
          $request.= "&amp;";
      //append the ampersand (&amp;) sign after each parameter/value pair
      }
      $request = substr($request, 0, strlen($request)-1);
      //remove final (&amp;) sign from the request
      $url = "http://enterprise.smsgupshup.com/GatewayAPI/rest?".$request;
      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      $curl_scraped_page = curl_exec($ch);
      curl_close($ch);
      //echo $curl_scraped_page;
  
  ?&gt;
  </code></pre>
  
  <p>and that's the error i'm getting:</p>
  
  <pre><code>Notice: Use of undefined constant method - assumed 'method'
  Notice: Use of undefined constant send_to - assumed 'send_to'
  Notice: Use of undefined constant msg - assumed 'msg'
  Notice: Use of undefined constant userid - assumed 'userid'
  Notice: Use of undefined constant password - assumed 'password'
  Notice: Use of undefined constant v - assumed 'v'
  Notice: Use of undefined constant msg_type - assumed 'msg_type' 
  Notice: Use of undefined constant auth_scheme - assumed 'auth_scheme'
  </code></pre>
  
  <p>could anyone please help me to understand what is this error and how can i solve it ?</p>