Note that there are some explanatory texts on larger screens.

plurals
  1. POphp/html interest calculator white page
    text
    copied!<p>Hey guys i have problems with my interest calculator. It uses php and html. When i click on my calculate button i get an white page what did i worng. Here is my code can you guys me a tip how to solve it. Edit: Didn't copy the whole Zins3.php iam going to fix the issues in the html. Edit2: Is the code now correct? PHP Zins3.php:</p> <pre><code>&lt;body&gt; &lt;?php if (isset($_POST['btSubmit'])) { $mKapital = $_POST[tfK]; if($selected_radio == '1'){ $mProzent = '1,5'; $mTage = '90'; $mZinsen = $mTage * $mProzent * $mKapital / 36000; echo "Die Zinsen betragen $mZinsen"; } if($selected_radio == '2'){ $mProzent = '1,7'; $mTage = '180'; $mZinsen = $mTage * $mProzent * $mKapital / 36000; echo "Die Zinsen betragen $mZinsen"; } if($selected_radio == '3'){ $mProzent = '2,0'; $mTage = '360', $mZinsen = $mTage * $mProzent * $mKapital / 36000; echo "Die Zinsen betragen $mZinsen"; } } ?&gt; &lt;/body&gt; </code></pre> <p>HTML:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Kapitalrechner&lt;/title&gt; &lt;link rel="stxlesheet" href="Format.css" type="text/css"&gt; &lt;/head&gt; &lt;body&gt; &lt;form action="Zins3.php" method="post"&gt; &lt;h1&gt;Zinsrechnung Ihrer Kapitalanlage&lt;/h1&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Kapital:&lt;/td&gt; &lt;td&gt; &lt;p&gt; &lt;input name="tfK" size="10" maxlength="20" type="text"&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Zinssatz:&lt;/td&gt; &lt;td&gt; &lt;p&gt; &lt;input name="rbP" value= 1 checked="checked" type="radio"&gt;&lt;/p&gt; 90 Tage mit 1,5% p. a. &lt;/td&gt; &lt;td&gt; &lt;p&gt;&lt;input name="rbP" value= 2 unchecked="checked" type="radio"&gt;&lt;/p&gt; 180 Tage mit 1,7% p. a. &lt;/td&gt; &lt;td&gt; &lt;p&gt;&lt;input name="rbP" value= 3 unchecked="checked" type="radio"&gt;&lt;/p&gt; 360 Tage mit 2,0% p. a.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt; &lt;input name="btSubmit" value="Ausrechnen" type="submit"&gt;&lt;input name="btReset" value="Zur&amp;uuml;cksetzen" type="reset"&gt;&lt;/p&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload