Hey! I’m a new student when it comes to php development… I am really stumped on a number of my assignments but this one in particular seems simple enough and yet I can’t seem to figure out what I’m doing wrong. Help. I’m supposed to make a php calculator using the $_GET to retreive the variable for the index.html… but nothing is coming up when i tested it.
[php]
Calculator <?php $integer1 = $_GET["value1"]; $integer2 = $_GET["value2"]; $operand = $_GET["opt"]; $value1 = (int)$integer1; $value2 = (int)$integer2; if (!$value1) { print "Please enter a number in Interger 1."; } ?> [/php][code]
Untitled 2Integer 1 |
+ - * / |
Integer 2 |
Solution: |
please help!!