1.PHP/HTML Radio button form-displays pre-calculated values in ems out of values in pixels.
2.Website:numiverzum.com.
3.Date:9/26/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 EMs</label></li>

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

<br>

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

<br>

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

<br>

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


<br>


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

 </form>

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

                      echo "16px browser default size:10px is 0.625em.<br>";
                      
                     

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

                                                              {

                      echo "16px browser default size:15px is 0.938em.<br>";
                      
                      

                                                              }

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



                                                              {

                        echo "16px browser default size:20px is 1.250em.<br>";
                      
                     

                                                              }



           else { 

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

 </li>
</ul>



























