title: PHP - Passing form input as a variable to a bash script?
body: <p>I'm working on a quick and dirty webapp that is designed to wrap common tasks I accomplish with shell scripts into a web interface for a couple of users that cannot use the CLI.</p>
  
  <p>My only issue is passing a value entered into a form to be used as an argument against said shell script.  For example, one bash script simply takes an email address as an argument.  What is the best way to pass this along to my bash script to be executed?</p>
  
  <p>I was thinking of using system() as the PHP show that it could work in this case and then print out the result that the script displays on the webpage but I'm having issues figuring out where to even start.</p>
  
  <p>My form code is mostly placeholder right now and is as follows:</p>
  
  <pre><code>  &lt;input type="text" id="syncAcct" runat="server" name="syncAcct" class="form-control" placeholder="user@domain.tld"&gt;
    &lt;span class="input-group-btn"&gt;
      &lt;button class="btn btn-default" runat="server" name="submit" type="button"&gt;Sync Quota&lt;/button&gt;
  </code></pre>
  
  <p>I need to take the input from that form (an email address) and pass it to my script (e.g. syncQuota.sh user@domain.tld), if I can somehow print the result from that on the page as well that would be a nice bonus but I'm really working towards basic functionality and am quite lost at this point.</p>
  
  <p>Any help you could provide would be greatly appreciated. </p>