title: send SMS from website
body: <p>I have google around and try to see if I could find something php server where you can see it on to mobile etc.. I have read me until that one must have an API code before you can do it.</p>
  
  <p>Hope you can help me</p>
  
  <p>Feel free to ask me if there's anything else you want to know?</p>
  
  <p>i have to try its here:</p>
  
  <pre><code>// Create a Clockwork object using your API key
  $clockwork = new Clockwork( $key );
  
  // Setup and send a message
  $message = array( "to" =&gt; "441234567890", "message" =&gt; "Hello World" );
  $result = $clockwork-&gt;send( $message );
  
  // Check if the send was successful
  if( $result["success"] ) {
      echo "Message sent - ID: " . $result["id"];
  } else {
      echo "Message failed - Error: " . $result["error_message"];
  }
  </code></pre>
  
  <p>I can in no way get it to work at all. it does not send any SMS. and is download from here:
  <a href="http://www.clockworksms.com/" rel="nofollow">http://www.clockworksms.com/</a></p>
  
  <p>I have no api and I do not go out and make money for it. it is such that I come from <em>Denmark</em>,.</p>
  
  <p>EIDT! : </p>
  
  <pre><code>function sms_server()
      {
          $number = $_POST["mobil"];
          $tekst = $_POST["tekst"];
          $clockwork = new Clockwork("785c853......");
  
          $message = array( "to" =&gt; $number, "message" =&gt; $tekst);
          $result = $clockwork-&gt;send( $message );
  
          if( $result["success"] ) {
              echo "Message sent - ID: " . $result["id"];
          } else {
              echo "Message failed - Error: " . $result["error_message"];
          }
      }
  
  
  &lt;form action="#" method="post"&gt;
              &lt;table width="100%"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;nummer&lt;/td&gt;
                      &lt;td&gt;&lt;input type="number" name="mobil"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Tekst&lt;/td&gt;
                      &lt;td&gt;&lt;textarea name="sms" style="width:100%;"&gt;&lt;/textarea&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type="submit" name="send" value="Send sms"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/form&gt;
          &lt;?php
          if(isset($_POST["send"]))
          {
              $sms_server = $mebe-&gt;sms_server();
          }
          ?&gt;
  </code></pre>