Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Trying to make a math thing with variabels

$
0
0
Hello i want to $one + $two and then get the answer but i have stuck right now.
 
<?php

$one = $_POST['one'];
$two = $_POST['two'];

if(isset($_POST['button'])) {

    if ($one + $two) {
    
    echo ;
    
    }

}


?>

<form method="post" action="new.php">
<input type="text" name="one">+
<input type="text" name="two">
<input type="submit" name="button">
</form>

Viewing all articles
Browse latest Browse all 13200

Trending Articles