Unnamed
- <?php
- $number = $_GET['number'];
- $multiply = $_GET['multiply'];
- $process = $_GET['process'];
- //$output = $number $process $multiply;
- if ($process == '%2B')
- {
- $output = $number + $multiply;
- }
- if ($process == '%2F')
- {
- $output = $number / $multiply;
- }
- //
- if ($process == '*')
- {
- $output = $number * $multiply;
- }
- if ($process == '-')
- {
- $output = $number - $multiply;
- }
- echo $output;
- ?>
- GIVES ERROR OF
- [Thu May 11 20:54:21 2006] [error] [client 10.0.0.2] PHP Notice: Undefined variable: output in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\MRBS\\test\\math.php on line 25, referer: http://10.0.0.2/mrbs/test/math.html