1.PHP/HTML Radio button form-displays pre-calculated values in centimeters out of values in pixels.With 96px default PPI(for the web).
2.Website:numiverzum.com.
3.Date:10/23/2019.
3.Free to adapt and/or modify to any extent.
4.Some form of attribution is required,but flexible.



Copy below this line and add to your PHP web page(preferably the sidebar)
---------------------------------------------------------------------------------------------------------


<ul>

<li><label> Pixels to Centimeters</label></li>

<li><form method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>"

<br>

<input type="radio"  name="pxcm" value="10px">10px

<br>

<input type="radio"  name="pxcm" value="15px">15px

<br>

<input type="radio"  name="pxcm" value="20px">20px


<br>


 
<input type="submit" name="submit" value="submit">

 </form>

<?php
  if (isset($_POST['submit'])) {
   
          if ($_POST['pxcm'] =="10px")
   
                                                           {

                      echo "96px default PPI:10px is 0.264583cm.<br>";
                      
                     

                                                              }
      
        else if ($_POST['pxcm'] =="15px") 

                                                              {

                      echo "96px default PPI:15px is 0.396875cm.<br>";
                      
                      

                                                              }

      
       else if ($_POST['pxcm'] =="20px") 



                                                              {

                        echo "96px default PPI:20px is 0.529167cm.<br>";
                      
                     

                                                              }



           else { 

             echo "Did not choose any value.Retry.";
            
      }
              
}
?>

 </li>
</ul>

