how to build calculator in php? [closed] - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Thursday, October 12, 2023

how to build calculator in php? [closed]

I'm trying to build calculator in PHP but this code is not working, what's wrong with it?

<html>
<body>
<?php print_r($_GET); ?>
<?=$_GET['add_first']+$_GET['add_second'];?> 
<?="The sum of ${_GET['add_first']} and ${_GET['add_second']} is:"?>
<h4><?=$_GET['add_first']+$_GET['add_second']?></h4>
<a href="index.php">Reset</a>
</body>
</html>


source https://stackoverflow.com/questions/77275530/how-to-build-calculator-in-php

No comments:

Post a Comment