title: Passing a variable from text box to a API url for Digital Ocean
body: <p>I’m trying to get the URL below to change the hostname of a server with Digital Oceans API</p>
  
  <pre><code>&lt;a href=\"https://api.digitalocean.com/droplets/$serverid/rename/?client_id=$myClientID&amp;api_key=$myDOApi&amp;name=newHostName\" target=\"_blank\"&gt;
  &lt;font color=\"#CCFB5D\"&gt;Rename&lt;/font&gt;&lt;/a&gt;
  </code></pre>
  
  <p>This link works perfectly if I manually type the new hostname in the code, but how would I pass a <code>newHostName</code> variable from a text box into the url with PHP as it is submitted?</p>