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