- Joined
- Aug 17, 2010
- Messages
- 161
- Reaction score
- 14
Hey!!!
Ive coded a calculator but multiple function dont work . It shows a random number , for example : 5*5 = 10056 .
multiple code :
</form> etc.. are includied
results.php for multiple function
Whats the problem that it doesnt show the correct value ?
---------- Post added at 03:49 PM ---------- Previous post was at 01:53 PM ----------
cmon rz coders !
Ive coded a calculator but multiple function dont work . It shows a random number , for example : 5*5 = 10056 .
multiple code :
PHP:
<form action="results.php" method="post">
<input type=number name=number1> * <input type=number name=number2><br>
<input type=submit value=submit>
results.php for multiple function
PHP:
<?php echo $_POST["number1"] . " * " . $_POST["number2"]; ?> = <?php echo $_POST["number1"] * $_POST["number2"]; ?>
Whats the problem that it doesnt show the correct value ?
---------- Post added at 03:49 PM ---------- Previous post was at 01:53 PM ----------
cmon rz coders !
Last edited: