Re: A Calculator Bug
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: A Calculator Bug

From: Pedro Graca <hexkid@dodgeit.com>
Date: Fri Dec 30 2005 - 02:44:10 CET

XIII wrote:
> i just created this benefits calculator, but it doesn't work, there is
> no changes happen after submitting, anyone can help in that??
> <html>
> <head>
> <title> |||Stocks Calculator||| </title>
> <style type="text/css">
> <!--
> body {font-size: 14pt}
> .heading {font-size: 18pt; color: red}
> -->
> </style>
> </head>
> <?php
> if (!isset($_post['submit']) || $_post['submit'] != 'Calculate')
<snip>

I stopped reading here.

add
      error_reporting(E_ALL);
      ini_set('display_errors', '1');

right before the if() line above, so that all errors, warnings and
notices are displayed in the browser.

-- 
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Received on Tue Jan 3 03:49:43 2006