title: PHP Square Root Calculator (w/ HTML)
body: <p>I've attempted to make a square root calculator with PHP and HTML using form. but it won't seem to get the output statement. Here it is:</p>
  
  <pre><code>    &lt;?php
  $num = $_POST['getroot'];
  $pull_sqrt = print(sqrt($num));
  print("The Square root of "$num"is "$pull_sqrt);
  ?&gt;
  
  &lt;form action="root.php" method="post"&gt;
  &lt;input type="text" id="getroot" value="Number"/&gt;
  &lt;input type="submit" id="submitroot" value="Calculate"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>for root.php:</p>
  
  <pre><code>&lt;?php
  $num = $_POST['getroot'];
  $pull_sqrt = print(sqrt($num));
  print("The Square root of "$num"is "$pull_sqrt);
  ?&gt;
  </code></pre>
  
  <p>Please help me out on explaining this, I still don't know if PHP allowed sqrt(); as a function anymore. Any way of re-editing is fine, I would like an explained way of fixing this. Thanks!</p>