[Solved] How can I specifically convert this php code to html? [closed]


Can you use Ajax and show the result in HTML

<script>
$.ajax({
  urL:"./tomy.php",
  type:"POST",
  data:{getuserAgent:1},
  success:function(data){
  $("#mydiv").html(data);
  }

});


</script>

tomy.php

    <?php
   if(isset($_POST['getuserAgent']){
    echo $_SERVER['HTTP_USER_AGENT'];
    $browser = get_browser();
    print_r($browser);
}
    ?>

3

solved How can I specifically convert this php code to html? [closed]