a pastebin project

Unnamed

  1. <?php
  2. $number = $_GET['number'];
  3. $multiply = $_GET['multiply'];
  4. $process = $_GET['process'];
  5. //$output = $number $process $multiply;
  6. if ($process == '%2B')
  7. {
  8. $output = $number + $multiply;
  9. }
  10. if ($process == '%2F')
  11. {
  12. $output = $number / $multiply;
  13. }
  14. //
  15. if ($process == '*')
  16. {
  17. $output = $number * $multiply;
  18. }
  19. if ($process == '-')
  20. {
  21. $output = $number - $multiply;
  22. }
  23.  
  24.  
  25. echo $output;
  26. ?>
  27.  
  28.  
  29.  
  30. GIVES ERROR OF
  31. [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

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords.

worth-right
fantasy-obligation