title: How to split this url accept multiple sms gateways
body: <p>I am currently making a script that will be able to send sms via the http api of multiple sms gateways.But my problem is how to extract the api details from the url.</p>
  
  <p>Here is what I am trying to do :</p>
  
  <p>A simple html form where a user can paste the API details given by an sms gateway. eg </p>
  
  <p><strong><a href="http://www.mysmsgateway.com/s/smsapi.php?username=xxx&amp;password=xxx&amp;sender=Mybrand&amp;recipient=234808xxxxxxx,2348030000000&amp;message=yourmessagehere" rel="nofollow">http://www.mysmsgateway.com/s/smsapi.php?username=xxx&amp;password=xxx&amp;sender=Mybrand&amp;recipient=234808xxxxxxx,2348030000000&amp;message=yourmessagehere</a></strong></p>
  
  <p>The url is recieved via  php, and the api details are extracted, for sending sms</p>
  
  <p>The  problem I have is that the HTTP API url format of these gateways are always slightly different from each other.</p>
  
  <p>Lokk at the one below</p>
  
  <p><strong><a href="http://www.estoresms.com/smsapi.php?username=user&amp;password=1234&amp;sender=@@sender@@&amp;recipient=@@recipient@@&amp;message=@@message@@&amp;" rel="nofollow">http://www.estoresms.com/smsapi.php?username=user&amp;password=1234&amp;sender=@@sender@@&amp;recipient=@@recipient@@&amp;message=@@message@@&amp;</a></strong></p>
  
  <p>Here is the code I'm currently writing</p>
  
  <p>** </p>
  
  <pre><code>   &lt;?php
      if(isset($_POST['url']))
      {
  
       $url=$_POST['url'];
       $splt=explode('?',$url);
       //var_dump($splt);
       $result=file_get_contents($url);
       echo($result);
  
       }
      ?&gt;
      &lt;form action="&lt;?php  echo $_SERVER['PHP_SELF']; ?&gt; " method="POST"&gt;
      &lt;input type="text" name="url"/&gt;
      &lt;input type="submit" value="submit"/&gt;
  
      &lt;/form&gt;**
  </code></pre>
  
  <p>I know that the html is not yet complete</p>